2022-01-24 20:08:41 +00:00
|
|
|
use std::path::PathBuf;
|
|
|
|
|
|
|
|
use structopt::StructOpt;
|
|
|
|
|
|
|
|
#[derive(StructOpt, Debug)]
|
|
|
|
#[structopt(name = "blspc")]
|
|
|
|
pub struct Args {
|
|
|
|
/// Verbose mode (-v, -vv, -vvv, etc.). Max is 2 currently.
|
|
|
|
#[structopt(short, long, parse(from_occurrences))]
|
|
|
|
pub verbose: u8,
|
|
|
|
|
2022-01-26 08:07:53 +00:00
|
|
|
/// Compliation mode (-c).
|
|
|
|
#[structopt(short, long)]
|
|
|
|
pub compile: bool,
|
|
|
|
|
|
|
|
/// Run mode (-r).
|
|
|
|
#[structopt(short, long)]
|
|
|
|
pub run: bool,
|
|
|
|
|
2022-01-24 20:08:41 +00:00
|
|
|
/// Files to process.
|
|
|
|
#[structopt(name = "FILE", parse(from_os_str))]
|
|
|
|
pub file: PathBuf,
|
2022-01-26 08:07:53 +00:00
|
|
|
|
|
|
|
/// Output file.
|
|
|
|
#[structopt(short, long, parse(from_os_str))]
|
|
|
|
pub output: Option<PathBuf>,
|
2022-01-24 20:08:41 +00:00
|
|
|
}
|