Skip to content
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

Arguments start with "-" cause error #10692

Closed
peizhou298 opened this issue Sep 30, 2019 · 1 comment
Closed

Arguments start with "-" cause error #10692

peizhou298 opened this issue Sep 30, 2019 · 1 comment
Assignees
Labels
Core CLI core infrastructure

Comments

@peizhou298
Copy link

peizhou298 commented Sep 30, 2019

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
If your command input starts with "-", it would throw an error "Excepted one argument".

To Reproduce
Type any command with a string argument, and give input starts with "-".
eg. this is our cli extension:
Capture

@jiasli jiasli self-assigned this Sep 30, 2019
@jiasli jiasli added the Core CLI core infrastructure label Sep 30, 2019
@jiasli
Copy link
Member

jiasli commented Sep 30, 2019

This is actually an issue with python's argparse. See https://stackoverflow.com/questions/16174992/cant-get-argparse-to-read-quoted-string-with-dashes-in-it

--jvm-options="-XxMaxSize=1024" should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core CLI core infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants