Skip to content

Arg::overrides_with

since 0.1.0

Sets an overridable argument.

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