finga
57d4f10b41
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Bump `clap` to latest version.
17 lines
381 B
Rust
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>,
|
|
}
|