use clap::Clap;
#[derive(Clap)]
#[clap(version = "1.0", author = "Alex M. <alex41290@gmail.com>")]
pub struct Opts {
#[clap(default_value = ".")]
path: String,
#[clap(short, long)]
shell: bool,
#[clap(short, long)]
target: Option<String>,
#[clap(short, long)]
config: Option<String>,
#[clap(long)]
no_cache: bool,
}
impl Opts {
pub fn get_path(&self) -> String {
self.path.clone()
}
pub fn get_shell(&self) -> bool {
self.shell
}
pub fn get_target(&self) -> Option<String> {
self.target.clone()
}
pub fn get_config(&self) -> Option<String> {
self.config.clone()
}
pub fn get_no_cache(&self) -> bool {
self.no_cache
}
}