Skip to content

Command::display_order

since 0.1.0

Set the placement of this subcommand within the help.

name = "myprog"
[[subcommands]]
name = "beta"
display-order = 0
about = "Some help and text"
[[subcommands]]
name = "alpha"
display-order = 0
about = "I should be first!"
Terminal window
myprog --help
Terminal window
Usage: myprog [COMMAND]
Commands:
alpha I should be first!
beta Some help and text
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help