webhookey/src/cli.rs
finga 27169bd596
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
cargo: Bump clap to 4.3
Bump `clap` to latest version.
2023-06-11 17:28:01 +02:00

17 lines
396 B
Rust

use clap::{AppSettings, 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>,
}