mirror of
https://github.com/supleed2/omg-rs.git
synced 2024-09-19 21:26:17 +00:00
16 lines
518 B
Rust
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,
|
|
}
|