Enum clap::ArgSettings [−][src]
pub enum ArgSettings {}Show 18 variants
Required, Multiple, EmptyValues, Global, Hidden, TakesValue, UseValueDelimiter, NextLineHelp, RequireDelimiter, HidePossibleValues, AllowLeadingHyphen, RequireEquals, Last, HideDefaultValue, CaseInsensitive, HideEnvValues, HiddenShortHelp, HiddenLongHelp, // some variants omitted
Expand description
Various settings that apply to arguments and may be set, unset, and checked via getter/setter
methods Arg::set
, Arg::unset
, and Arg::is_set
Variants
The argument must be used
The argument may be used multiple times such as --flag --flag
The argument allows empty values such as --option ""
The argument should be propagated down through all child SubCommand
s
The argument should not be shown in help text
The argument accepts a value, such as --option <value>
Determines if the argument allows values to be grouped via a delimiter
Prints the help text on the line after the argument
Requires the use of a value delimiter for all multiple values
Hides the possible values from the help string
Allows vals that start with a ‘-’
Require options use --option=val
syntax
Specifies that the arg is the last positional argument and may be accessed early via --
syntax
Hides the default value from the help string
Makes Arg::possible_values
case insensitive
Hides ENV values in the help message
The argument should not be shown in short help text
The argument should not be shown in long help text
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArgSettings
impl Send for ArgSettings
impl Sync for ArgSettings
impl Unpin for ArgSettings
impl UnwindSafe for ArgSettings
Blanket Implementations
Mutably borrows from an owned value. Read more