Skip to content

Arg::overrides_with_all

since 0.1.0

Sets multiple mutually overridable arguments by name.

name = "prog"
[args]
flag = { short = 'f', long = "flag", action = "set-true", help = "some flag", conflicts-with = "color" }
debug = { short = 'd', long = "debug", action = "set-true", help = "other flag" }
color = { short = 'c', long = "color", action = "set-true", help = "third flag", overrides-with-all = ["flag", "debug"] }
Terminal window
prog -f -d -c
Terminal window
claptrap_color='true'
claptrap_flag='false'
claptrap_debug='false'