Skip to content

Arg::display_order

since 0.1.0

Allows custom ordering of args within the help message.

name = "prog"
[args]
boat = { short = 'b', long = "boat", action = "set", display-order = 0, help = "Some help and text" }
airplane = { short = 'a', long = "airplane", action = "set", display-order = 0, help = "I should be first!" }
custom-help = { short = '?', action = "help", display-order = 100, help = "Alt help" }
Terminal window
prog --help
Terminal window
Usage: prog [OPTIONS]
Options:
-a, --airplane <airplane> I should be first!
-b, --boat <boat> Some help and text
-? Alt help
-h, --help Print help