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

arg removes all double dashes from the arguments, even after the first one #229

Open
cjhardekopf opened this issue Jan 29, 2025 · 0 comments

Comments

@cjhardekopf
Copy link

cjhardekopf commented Jan 29, 2025

I would expect double dashes ("--") after the first one to be passed through as an argument. A simple test script:

#!/usr/bin/env -S usage bash
#USAGE min_usage_version "2"
#USAGE name "double_dash test"
#USAGE about "Test double dash behavior"
#USAGE arg "<args>..." help="Args" double_dash="automatic"

# echo args
echo "$usage_args"

The behavior appears the same no matter what double_dash behavior is specified. For example:

$ ./double_dash_test -- hello -- goodbye --
hello goodbye

I expect to see hello -- goodbye -- since I would expect everything after the first double dash to be treated as an argument.

$ usage --version
2.0.3
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

1 participant