Skip to content

Arg::exclusive

since 0.1.0

This argument must be passed alone; it conflicts with all other arguments.

name = "prog"
[args]
exclusive = { long = "exclusive", action = "set", exclusive = true }
debug = { long = "debug" }
input = {}
Terminal window
prog --exclusive file.conf file.txt
Terminal window
error: the argument '--exclusive <exclusive>' cannot be used with one or more of the other specified arguments
Usage: prog [OPTIONS] [input]
For more information, try '--help'.