ArgGroup::id
since 0.1.0
Terminal window
Terminal window
Sets the group name.
Example
Section titled “Example”name = "myprog"[groups]my_group_id = { args = ["foo", "bar"] }[args]foo = { short = 'f', action = "set-true" }bar = { short = 'b', action = "set-true" }
name: myproggroups: my_group_id: args: - foo - barargs: foo: short: f action: set-true bar: short: b action: set-true
{ "name": "myprog", "groups": { "my_group_id": { "args": [ "foo", "bar" ] } }, "args": { "foo": { "short": "f", "action": "set-true" }, "bar": { "short": "b", "action": "set-true" } }}
myprog -f
Output
Section titled “Output”claptrap_foo='true'claptrap_bar='false'