Enum clap::ArgSettings
[−]
[src]
pub enum ArgSettings {
Required,
Multiple,
EmptyValues,
Global,
Hidden,
TakesValue,
UseValueDelimiter,
NextLineHelp,
RequireDelimiter,
// some variants omitted
}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
RequiredThe argument must be used
MultipleThe argument may be used multiple times such as --flag --flag
EmptyValuesThe argument allows empty values such as --option ""
GlobalThe argument should be propagated down through all child [SubCommands]
HiddenThe argument should not be shown in help text
TakesValueThe argument accepts a value, such as --option <value>
UseValueDelimiterDetermines if the argument allows values to be grouped via a delimter
NextLineHelpPrints the help text on the line after the argument
RequireDelimiterRequires the use of a value delimiter for all multiple values
Trait Implementations
impl Clone for ArgSettings[src]
fn clone(&self) -> ArgSettings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for ArgSettings[src]
impl PartialEq for ArgSettings[src]
fn eq(&self, __arg_0: &ArgSettings) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.