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

Accept more than one -- #120

Closed
sourcefrog opened this issue Feb 10, 2022 · 1 comment
Closed

Accept more than one -- #120

sourcefrog opened this issue Feb 10, 2022 · 1 comment

Comments

@sourcefrog
Copy link

In building a Cargo subcommand I want to accept commands that look like

cargo mutants --mutants-opt -- --cargo-test-opt -- --test-target-opt

That is to say there will be two -- in the argv seen by argh.

I know this looks a bit weird but I think it is consistent with the general GNU/Unix approach that -- stops special interpretation of options following it and treats them all as arguments.

Unfortunately Argh currently seems to complain

; cargo mutants -- -- --test-threads 1
Unrecognized argument: --

Related: #78, sourcefrog/cargo-mutants#15

@sourcefrog
Copy link
Author

Actually this was my mistake, it works fine.

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