Arg::long
since 0.1.0
Terminal window
Terminal window
Sets the long version of the argument without the preceding --
.
Example
Section titled “Example”name = "prog"[args]cfg = { long = "config", action = "set" }
name: progargs: cfg: long: config action: set
{ "name": "prog", "args": { "cfg": { "long": "config", "action": "set" } }}
prog --config file.toml
Output
Section titled “Output”claptrap_cfg='file.toml'