Skip to content

Commit b773fe1

Browse files
committed
ask: fix bad __flag refactor
/ref a95baa0
1 parent fa50ccb commit b773fe1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

commands/ask

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@ function ask_() (
149149
'--help' | '-h') help ;;
150150
'--question='*) option_question+=("${item#*=}") ;;
151151
'--default='*) option_default="${item#*=}" ;;
152-
'--no-skip-default'* | '--skip-default'*) __flag --source="$item" --target={option_confirm_default} --non-affirmative ;;
153-
'--no-confirm-default'* | '--confirm-default'*) __flag --source="$item" --target={option_confirm_default} --affirmative ;;
154-
'--no-confirm-input'* | '--confirm-input'*) __flag --source="$item" --target={option_confirm_input} --affirmative ;;
152+
'--no-skip-default'* | '--skip-default'*) __flag --source={item} --target={option_confirm_default} --non-affirmative ;;
153+
'--no-confirm-default'* | '--confirm-default'*) __flag --source={item} --target={option_confirm_default} --affirmative ;;
154+
'--no-confirm-input'* | '--confirm-input'*) __flag --source={item} --target={option_confirm_input} --affirmative ;;
155155
'--no-confirm'* | '--confirm'*)
156-
__flag --source="$item" --target={option_confirm_default} --affirmative
157-
__flag --source="$item" --target={option_confirm_input} --affirmative
156+
__flag --source={item} --target={option_confirm_default} --affirmative
157+
__flag --source={item} --target={option_confirm_input} --affirmative
158158
;;
159-
'--no-required'* | '--required'*) __flag --source="$item" --target={option_required} --affirmative ;;
160-
'--no-password'* | '--password'*) __flag --source="$item" --target={option_password} --affirmative ;;
161-
'--no-linger'* | '--linger'*) __flag --source="$item" --target={option_linger} --affirmative ;;
162-
'--no-inline'* | '--inline'*) __flag --source="$item" --target={option_inline} --affirmative ;;
159+
'--no-required'* | '--required'*) __flag --source={item} --target={option_required} --affirmative ;;
160+
'--no-password'* | '--password'*) __flag --source={item} --target={option_password} --affirmative ;;
161+
'--no-linger'* | '--linger'*) __flag --source={item} --target={option_linger} --affirmative ;;
162+
'--no-inline'* | '--inline'*) __flag --source={item} --target={option_inline} --affirmative ;;
163163
'--timeout='*) option_timeout="${item#*=}" ;;
164164
'--')
165165
args+=("$@")

0 commit comments

Comments
 (0)