Enum clap::ArgSettings [−][src]
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
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
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,
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>,