Arg::id
since 0.1.0
Terminal window
Terminal window
Set the identifier used for referencing this argument in the clap API.
Example
Section titled “Example”name = "prog"[args]my-arg-id = { long = "foo", action = "set" }
name: progargs: my-arg-id: long: foo action: set
{ "name": "prog", "args": { "my-arg-id": { "long": "foo", "action": "set" } }}
prog --foo file.toml
Output
Section titled “Output”claptrap_my-arg-id='file.toml'