Enum clap::ArgSettings [−][src]
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 environment variable arguments from the help message
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]
fn clone(&self) -> ArgSettings
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ArgSettings
[src]
impl Debug for ArgSettings
[src]
impl FromStr for ArgSettings
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<ArgSettings> for ArgSettings
[src]
fn eq(&self, other: &ArgSettings) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ArgSettings
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArgSettings
[src]
impl Send for ArgSettings
[src]
impl Sync for ArgSettings
[src]
impl Unpin for ArgSettings
[src]
impl UnwindSafe for ArgSettings
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,