Skip to content

Command::next_display_order

since 0.1.0

Change the starting value for assigning future display orders for args.

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!" }
Terminal window
prog --help
Terminal window
Usage: prog [OPTIONS]
Options:
-a, --airplane <airplane> I should be first!
-? Alt help
-h, --help Print help