Skip to content

Arg::index

since 0.1.0

Specifies the index of a positional argument starting at 1.

name = "prog"
[args]
mode = { index = 1 }
debug = { long = "debug", action = "set-true" }
Terminal window
prog --debug fast
Terminal window
claptrap_debug='true'
claptrap_mode='fast'