[−][src]Enum structopt::clap::ArgSettings
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
Required
The argument must be used
Multiple
The argument may be used multiple times such as --flag --flag
EmptyValues
The argument allows empty values such as --option ""
Global
The argument should be propagated down through all child SubCommands
: ./struct.SubCommand.html
Hidden
The argument should not be shown in help text
TakesValue
The argument accepts a value, such as --option <value>
UseValueDelimiter
Determines if the argument allows values to be grouped via a delimiter
NextLineHelp
Prints the help text on the line after the argument
RequireDelimiter
Requires the use of a value delimiter for all multiple values
HidePossibleValues
Hides the possible values from the help string
AllowLeadingHyphen
Allows vals that start with a '-'
RequireEquals
Require options use --option=val
syntax
Last
Specifies that the arg is the last positional argument and may be accessed early via --
syntax
HideDefaultValue
Hides the default value from the help string
CaseInsensitive
Makes Arg::possible_values
case insensitive
HideEnvValues
Hides ENV values in the help message
HiddenShortHelp
The argument should not be shown in short help text
HiddenLongHelp
The argument should not be shown in long help text
Trait Implementations
impl Clone for ArgSettings
[src]
impl Clone for ArgSettings
fn clone(&self) -> ArgSettings
[src]
fn clone(&self) -> ArgSettings
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ArgSettings
[src]
impl Debug for ArgSettings
impl Copy for ArgSettings
[src]
impl Copy for ArgSettings
impl FromStr for ArgSettings
[src]
impl FromStr for ArgSettings
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ArgSettings, <ArgSettings as FromStr>::Err>
[src]
fn from_str(s: &str) -> Result<ArgSettings, <ArgSettings as FromStr>::Err>
impl PartialEq<ArgSettings> for ArgSettings
[src]
impl PartialEq<ArgSettings> for ArgSettings
Auto Trait Implementations
impl Send for ArgSettings
impl Send for ArgSettings
impl Sync for ArgSettings
impl Sync for ArgSettings
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,