You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Single dash passed as positional arg disappears #381
Activity
markus456 commentedon Aug 12, 2021
So far the only workaround I've found is to use
'"-"'as the argument. This preserves it as a positional argument.Add note about option-like arguments to alter filter
shadowspawn commentedon Mar 12, 2023
This may be an issue in yargs rather than yargs-parser. There is a test that dash is supported as a positional in yargs-parser:
yargs-parser/test/yargs-parser.cjs
Line 1496 in 3aba24c
Related: yargs/yargs#1312