Enum clap::ArgSettings
source · pub enum ArgSettings {
Required,
Multiple,
EmptyValues,
Global,
Hidden,
TakesValue,
UseValueDelimiter,
NextLineHelp,
RequireDelimiter,
// some variants omitted
}Expand description
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]
[Arg::set]: ./struct.Arg.html#method.set
[Arg::unset]: ./struct.Arg.html#method.unset
[Arg::is_set]: ./struct.Arg.html#method.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]
[SubCommand]: ./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 delimter
NextLineHelp
Prints the help text on the line after the argument
RequireDelimiter
Requires the use of a value delimiter for all multiple values
Trait Implementations§
source§impl Clone for ArgSettings
impl Clone for ArgSettings
source§fn clone(&self) -> ArgSettings
fn clone(&self) -> ArgSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ArgSettings
impl Debug for ArgSettings
source§impl FromStr for ArgSettings
impl FromStr for ArgSettings
source§impl PartialEq for ArgSettings
impl PartialEq for ArgSettings
source§fn eq(&self, other: &ArgSettings) -> bool
fn eq(&self, other: &ArgSettings) -> bool
self and other values to be equal, and is used
by ==.impl Copy for ArgSettings
impl StructuralPartialEq for ArgSettings
Auto Trait Implementations§
impl Freeze for ArgSettings
impl RefUnwindSafe for ArgSettings
impl Send for ArgSettings
impl Sync for ArgSettings
impl Unpin for ArgSettings
impl UnwindSafe for ArgSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)