webhookey/src/cli.rs
finga 57d4f10b41
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
cargo: Bump clap to 4.3
Bump `clap` to latest version.
2023-06-11 18:01:37 +02:00

17 lines
381 B
Rust

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>,
}