24 lines
575 B
Rust
24 lines
575 B
Rust
use clap::{Parser, Subcommand};
|
|
|
|
#[derive(Parser)]
|
|
#[command(name = "RCC")]
|
|
#[command(author = "Mathias Rothenhaeusler")]
|
|
#[command(version = "1.0")]
|
|
#[command(about = "Tool collection for work at RCC.", long_about = None)]
|
|
pub struct Cli {
|
|
#[arg(short = 'e', long = "env")]
|
|
pub env: Option<String>,
|
|
#[arg(short = 't', long = "target")]
|
|
pub target: Option<String>,
|
|
#[command(subcommand)]
|
|
pub mode: Commands,
|
|
}
|
|
|
|
#[derive(Subcommand)]
|
|
pub enum Commands {
|
|
Merch {
|
|
#[arg(short = 's', long = "search")]
|
|
search: Option<String>,
|
|
},
|
|
}
|