Arg::value_terminator
value_terminator
Section titled “value_terminator ”Sentinel to stop parsing multiple values of a given argument.
Example
Section titled “Example”name = "prog"[args]cmds = { action = "set", num-args = "..", allow-hyphen-values = true, value-terminator = ";" }location = {}
name: progargs: cmds: action: set num-args: .. allow-hyphen-values: true value-terminator: ; location: {}
{ "name": "prog", "args": { "cmds": { "action": "set", "num-args": "..", "allow-hyphen-values": true, "value-terminator": ";" }, "location": {} }}
prog find type f -name special ; /home/clap
Output
Section titled “Output”claptrap_cmds=('find' 'type' 'f' '-name' 'special')claptrap_location='/home/clap'