omg-rs/src/cli.rs
Aadi Desai 4336eaa5eb
Switch to external api crate
And add submodule link to repository
2023-05-08 23:08:24 +01:00

16 lines
518 B
Rust

use clap::Parser;
use omg_api::Commands;
#[derive(Parser)]
pub struct Cli {
/// Set which omg.lol username to use, overrides config and environment variable (OMGLOL_USERNAME)
#[clap(short, long)]
pub name: Option<String>,
/// Categories of commands to interact with the omg.lol API
#[clap(subcommand)]
pub command: Option<Commands>,
/// Print debug information, repeat for higher levels of debug info (max 1)
#[arg(short, long, action = clap::ArgAction::Count)]
pub verbose: u8,
}