google / google/argh

Allow multiple subcommands

Open
#71 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

I would really like to be able to do the following:
```
prog cmd1 cmd2
```
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 cmd1 --cmd2
```
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? :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.