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

Prefix command #13

Closed
henryiii opened this issue Jun 2, 2017 · 1 comment
Closed

Prefix command #13

henryiii opened this issue Jun 2, 2017 · 1 comment
Milestone

Comments

@henryiii
Copy link
Collaborator

henryiii commented Jun 2, 2017

Add support for a prefix command, where a different app can be called after parsing. This is almost already supported; the problem is that you can't do the following:

./my_app --my_app_flag another_command --another_command_flag --my_app_flag

The final --my_app_flag will be parsed and used with CLI11 before returning the unparsed arguments.

You could use subcommands to solve this problem already, but then you would have to know the another_command beforehand.

See https://stackoverflow.com/questions/37996617/create-a-prefix-command-with-boost-program-options

@henryiii henryiii added this to the v1.1 milestone Jun 2, 2017
@henryiii henryiii closed this as completed Jun 5, 2017
@henryiii
Copy link
Collaborator Author

henryiii commented Jun 5, 2017

Added.

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

No branches or pull requests

1 participant