Skip to main content

Args

Trait Args 

Source
pub trait Args<T> {
    // Required methods
    fn has_help(&self) -> bool;
    fn all(&self) -> Vec<T>;
}
Expand description

Abstraction over command-line argument collections.

Required Methods§

Source

fn has_help(&self) -> bool

Checks if the help flag (--help) is present.

Source

fn all(&self) -> Vec<T>

Returns a copy of all arguments.

Implementations on Foreign Types§

Source§

impl Args<String> for Arguments

Source§

fn has_help(&self) -> bool

Source§

fn all(&self) -> Vec<String>

Source§

impl<T: AsRef<str> + Clone> Args<T> for Vec<T>

Source§

fn has_help(&self) -> bool

Source§

fn all(&self) -> Self

Implementors§