Command::display_order
display_order
Section titled “display_order ”Set the placement of this subcommand within the help.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "beta"display-order = 0about = "Some help and text"[[subcommands]]name = "alpha"display-order = 0about = "I should be first!"
name: myprogsubcommands:- name: beta display-order: 0 about: Some help and text- name: alpha display-order: 0 about: I should be first!
{ "name": "myprog", "subcommands": [ { "name": "beta", "display-order": 0, "about": "Some help and text" }, { "name": "alpha", "display-order": 0, "about": "I should be first!" } ]}
myprog --help
Output
Section titled “Output”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