Arg::index
index
Section titled “index ”Specifies the index of a positional argument starting at 1.
Example
Section titled “Example”name = "prog"[args]mode = { index = 1 }debug = { long = "debug", action = "set-true" }
name: progargs: mode: index: 1 debug: long: debug action: set-true
{ "name": "prog", "args": { "mode": { "index": 1 }, "debug": { "long": "debug", "action": "set-true" } }}
prog --debug fast
Output
Section titled “Output”claptrap_debug='true'claptrap_mode='fast'