halt-at-non-option
is incompatible with unknown-options-as-args
#437
Labels
halt-at-non-option
is incompatible with unknown-options-as-args
#437
Enabling
unknown-options-as-args
seems to short-circuit the code that would setnotFlags
to the remaining arguments after checking ifhalt-at-non-option
is enabled:yargs-parser/lib/yargs-parser.ts
Lines 225 to 226 in 0fdbfa1
I see several instances where
isUnknownOptionAsArg
is guarded with a basic check for/^-/.test(arg)
. Would it be naive to suggest that updating the condition toarg !== '--' && /^-/.test(arg) && isUnknownOptionAsArg(arg)
should fix it?The text was updated successfully, but these errors were encountered: