Edit subcommand markers #5780
Labels
A-help
Area: documentation, including docs.rs, readme, examples, etc...
C-enhancement
Category: Raise on the bar on expectations
Please complete the following tasks
Clap Version
4.5.20
Describe your use case
Currently, subcommand markers are generated as
<>
for required subcommands or[]
for optional ones.I would like to edit them. This would make transitions from other tools or rewritings much more easy.
For example, in Python by default are presented as
{cmd1,cmd2...}
, see https://docs.python.org/es/3/library/argparse.html#argparse.ArgumentParser.add_subparsers at:Describe the solution you'd like
I would like a to call a method like
subcommand_markers("{", "}")
. For example:Running
foo --help
:Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: