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

Interpret negative number as argument instead of flag #166

Closed
strang1ato opened this issue May 3, 2021 · 2 comments
Closed

Interpret negative number as argument instead of flag #166

strang1ato opened this issue May 3, 2021 · 2 comments

Comments

@strang1ato
Copy link

strang1ato commented May 3, 2021

When passing negative number (eg -123) or string which starts with negative number (eg -123abc) as argument, kong returns unknown flag error.

IMO if string starts with - followed by a number kong should interpret it as an argument instead of a flag

@alecthomas
Copy link
Owner

alecthomas commented May 3, 2021

-1 is a valid short flag though. Where there's ambiguity Kong requires explicitness, ie. --num=-1234 for flags or -- -1234 for positional arguments.

@strang1ato
Copy link
Author

Alright, thanks for fast answer. If it's against of the way how Kong do things I will close this issue 👍

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

No branches or pull requests

2 participants