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.
pkg-warner/src/args.rs

18 lines
480 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"))]
pub struct Args {
#[clap(long, short, action=ArgAction::SetTrue)]
pub init: bool,
#[clap(long = "dest-dir", short)]
pub dest_dir: Option<String>,
#[clap(long, action=ArgAction::SetTrue)]
pub test: bool,
#[clap(long, short, action=ArgAction::SetTrue)]
pub verbose: bool,
}