Command::next_display_order
next_display_order
Section titled “next_display_order ”Change the starting value for assigning future display orders for args.
Example
Section titled “Example”name = "prog"next-display-order = 1[args]custom-help = { short = '?', action = "help", display-order = 100, help = "Alt help" }airplane = { short = 'a', long = "airplane", action = "set", help = "I should be first!" }
name: prognext-display-order: 1args: custom-help: short: '?' action: help display-order: 100 help: Alt help airplane: short: a long: airplane action: set help: I should be first!
{ "name": "prog", "next-display-order": 1, "args": { "custom-help": { "short": "?", "action": "help", "display-order": 100, "help": "Alt help" }, "airplane": { "short": "a", "long": "airplane", "action": "set", "help": "I should be first!" } }}
prog --help
Output
Section titled “Output”Usage: prog [OPTIONS]
Options: -a, --airplane <airplane> I should be first! -? Alt help -h, --help Print help