2023-05-08 20:42:01 +00:00
|
|
|
use clap::Parser;
|
2023-05-08 22:07:07 +00:00
|
|
|
use omg_api::Commands;
|
2023-04-22 17:16:07 +00:00
|
|
|
|
|
|
|
#[derive(Parser)]
|
|
|
|
pub struct Cli {
|
2023-04-22 23:56:51 +00:00
|
|
|
/// Set which omg.lol username to use, overrides config and environment variable (OMGLOL_USERNAME)
|
2023-04-22 17:16:07 +00:00
|
|
|
#[clap(short, long)]
|
2023-04-22 17:47:12 +00:00
|
|
|
pub name: Option<String>,
|
2023-04-23 21:36:10 +00:00
|
|
|
/// Categories of commands to interact with the omg.lol API
|
2023-04-22 17:16:07 +00:00
|
|
|
#[clap(subcommand)]
|
|
|
|
pub command: Option<Commands>,
|
2023-04-22 23:56:51 +00:00
|
|
|
/// Print debug information, repeat for higher levels of debug info (max 1)
|
2023-04-22 17:16:07 +00:00
|
|
|
#[arg(short, long, action = clap::ArgAction::Count)]
|
|
|
|
pub verbose: u8,
|
|
|
|
}
|