You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
524 B
Rust
18 lines
524 B
Rust
use clap::{ArgAction, Parser};
|
|
|
|
#[derive(Debug, Clone, Parser)]
|
|
#[clap(name=env!("CARGO_PKG_NAME"), version=env!("CARGO_PKG_VERSION"), about=env!("CARGO_PKG_DESCRIPTION"), ignore_errors=true)]
|
|
pub struct Args {
|
|
#[clap(long, short, action=ArgAction::SetTrue)]
|
|
pub init: Option<bool>,
|
|
|
|
#[clap(long = "dest-dir", short)]
|
|
pub dest_dir: Option<String>,
|
|
|
|
#[clap(long, action=ArgAction::SetTrue)]
|
|
pub test: Option<bool>,
|
|
|
|
#[clap(long, short, action=ArgAction::SetTrue)]
|
|
pub verbose: Option<bool>,
|
|
}
|