sys-compare/src/options.rs

29 lines
576 B
Rust
Raw Normal View History

2024-03-29 04:21:51 +00:00
use clap::{Parser, Subcommand};
2024-03-28 23:05:09 +00:00
2024-03-29 04:18:38 +00:00
#[derive(Parser, Clone, Debug)]
2024-03-28 23:05:09 +00:00
pub struct Arguments {
#[command(subcommand)]
2024-03-29 14:37:06 +00:00
pub command: Commands,
2024-03-28 23:05:09 +00:00
}
2024-03-29 04:18:38 +00:00
#[derive(Subcommand, Clone, Debug)]
2024-03-28 23:05:09 +00:00
pub enum Commands {
Create {
#[arg(short, long)]
root_dir: String,
#[arg(short, long)]
output_path: String,
},
Compare {
#[arg(short, long)]
left: String,
#[arg(short, long)]
right: String,
2024-03-29 04:18:38 +00:00
#[arg(short, long)]
selection: Option<String>,
2024-03-29 20:45:08 +00:00
#[arg(short)]
2024-03-29 20:38:58 +00:00
count_only: Option<bool>,
2024-03-28 23:05:09 +00:00
},
}