webhookey/src/cli.rs

17 lines
381 B
Rust
Raw Normal View History

use clap::Parser;
#[derive(Debug, Parser)]
pub enum Command {
/// Verifies if the configuration can be parsed without errors
Configtest,
}
#[derive(Debug, Parser)]
pub struct Opts {
/// Provide a path to the configuration file
#[arg(short, long, value_name = "FILE")]
pub config: Option<String>,
#[command(subcommand)]
pub command: Option<Command>,
}