Skip to content

ArgGroup::multiple

since 0.1.0

Allows more than one of the Args in this group to be used.

name = "myprog"
[groups]
req_flags = { args = ["flag", "color"], multiple = true }
[args]
flag = { short = 'f', action = "set-true" }
color = { short = 'c', action = "set-true" }
Terminal window
myprog -f -c
Terminal window
claptrap_flag='true'
claptrap_color='true'