2023-06-11 14:41:09 +02:00
|
|
|
use clap::Parser;
|
2021-11-11 21:09:47 +01:00
|
|
|
|
|
|
|
#[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
|
2023-06-11 14:41:09 +02:00
|
|
|
#[arg(short, long, value_name = "FILE")]
|
2021-11-11 21:09:47 +01:00
|
|
|
pub config: Option<String>,
|
2023-06-11 14:41:09 +02:00
|
|
|
#[command(subcommand)]
|
2021-11-11 21:09:47 +01:00
|
|
|
pub command: Option<Command>,
|
|
|
|
}
|