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

Allow multiple subcommands #71

Open
Boscop opened this issue Nov 12, 2020 · 0 comments
Open

Allow multiple subcommands #71

Boscop opened this issue Nov 12, 2020 · 0 comments

Comments

@Boscop
Copy link

Boscop commented Nov 12, 2020

I would really like to be able to do the following:

prog <general_args..> cmd1 <cmd1_args..> cmd2 <cmd2_args..>

Because my program needs to have a CLI to run commands seq sequentially, without duplicating all the fields in each subcommand: Currently the cli for that looks like:

prog <general_args..> cmd1 <cmd1_args..> --cmd2 <cmd2_args..>

Which makes everything really awkward, especially because I have to duplicate the fields and support chaining and calling of cmd2 directly. And now I want to be able to chain arbitrary number of commands, this gets very hairy!
So please, can we allow multiple subcommands? :)

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