Arg::trailing_var_arg
trailing_var_arg
Section titled “trailing_var_arg ”This is a “var arg” and everything that follows should be captured by it, as if the user had used a --
.
Example
Section titled “Example”name = "prog"[args]cmd = { trailing-var-arg = true, num-args = "1.." }
name: progargs: cmd: trailing-var-arg: true num-args: 1..
{ "name": "prog", "args": { "cmd": { "trailing-var-arg": true, "num-args": "1.." } }}
prog arg1 -r val1
Output
Section titled “Output”claptrap_cmd=('arg1' '-r' 'val1')