pub struct Args {
pub version: bool,
pub command: Option<ArgsCommand>,
pub verbose: bool,
pub no_save: bool,
pub max_rows: usize,
pub color: BoolArg,
}Expand description
The history of current stars tells only half the starry.
Source at https://github.com/Canop/starry
Fields§
§version: boolprint the version
command: Option<ArgsCommand>§verbose: booltell what files are modified
no_save: booldon’t do any modification on disk (for tests or dev)
max_rows: usizenumber max of rows in a report (default: 30)
color: BoolArgcolor and style: ‘yes’, ‘no’ or ‘auto’ (auto should be good in most cases)
Trait Implementations§
Source§impl FromArgs for Args
impl FromArgs for Args
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
impl TopLevelCommand for Args
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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
Mutably borrows from an owned value. Read more