|
|
|
|
|
by dwattttt
283 days ago
|
|
> options that depend on options What would you do for "top level option, which can be modified in two other ways"? (--option | --option-with-flag1 | --option-with-flag2 | --option-with-flag1-and-flag2)
would solve invalid representation, but is unwieldy.Something that results in the usage string [--option [--flag1 --flag2]]
doesn't seem so bad at that point. |
|
Another possibility is to make the main option an argument, like the subcommands in git, systemctl, and others:
This depends on the specifics, though.