[−][src]Enum clap::ArgSettings
pub enum ArgSettings { Required, MultipleValues, MultipleOccurrences, AllowEmptyValues, Hidden, TakesValue, UseValueDelimiter, NextLineHelp, RequireDelimiter, HidePossibleValues, AllowHyphenValues, RequireEquals, Last, HideDefaultValue, IgnoreCase, HideEnvValues, HiddenShortHelp, HiddenLongHelp, // some variants omitted }
Various settings that apply to arguments and may be set, unset, and checked via getter/setter
methods Arg::setting
, Arg::unset_setting
, and Arg::is_set
. This is what the
Arg
methods which accept a bool
use internally.
Variants
Specifies that an arg must be used
Allows an arg to accept multiple values
Allows an arg to appear multiple times
Allows an arg accept empty values such as ""
Hides an arg from the help message
Allows an argument to take a value (such as --option value
)
Enables a delimiter to break up arguments --option val1,val2,val3
becomes three values
(val1
, val2
, and val3
) instead of the default one (val1,val2,val3
)
Tells an arg to display it's help on the line below the arg itself in the help message
Says that arg must use a delimiter to separate values
Hides the possible values from the help message
Allows values that start with a hyphen
Requires that an equals be used to provide a value to an option such as --option=value
Says that a positional arg will be the last positional, and requires --
to be accessed.
It can also be accessed early (i.e. before other positionals) by providing --
Hides the default value from the help message
Possible values become case insensitive
Hides any values currently assigned to ENV variables in the help message (good for sensitive information)
The argument should not be shown in short help text
The argument should not be shown in long help text
Trait Implementations
impl Clone for ArgSettings
[src][+]
impl Copy for ArgSettings
[src]
impl Debug for ArgSettings
[src][+]
impl FromStr for ArgSettings
[src][+]
impl PartialEq<ArgSettings> for ArgSettings
[src][+]
impl StructuralPartialEq for ArgSettings
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,