New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single dash passed as positional arg disappears #381
Comments
So far the only workaround I've found is to use |
markus456
added a commit
to mariadb-corporation/MaxScale
that referenced
this issue
Aug 12, 2021
The Yargs parser doesn't seem to play nicely with option-like arguments that are passed as positional arguments. For more information, refer to the following issues: yargs/yargs-parser#381 yargs/yargs-parser#145 yargs/yargs#1821
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is with yargs v16.0.1.
Sample code in
test.js
:Test:
This is unfortunate, as using
-
as a filename to meanstdin
orstdout
is a common convention.The text was updated successfully, but these errors were encountered: