cargo: Bump clap to 4.3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Bump `clap` to latest version.
This commit is contained in:
finga 2023-06-11 14:41:09 +02:00
parent 35b31b2a15
commit 57d4f10b41
3 changed files with 98 additions and 88 deletions

View file

@ -1,4 +1,4 @@
use clap::{AppSettings, Parser};
use clap::Parser;
#[derive(Debug, Parser)]
pub enum Command {
@ -7,17 +7,10 @@ pub enum Command {
}
#[derive(Debug, Parser)]
#[clap(
about,
version,
author,
global_setting = AppSettings::InferSubcommands,
global_setting = AppSettings::PropagateVersion,
)]
pub struct Opts {
/// Provide a path to the configuration file
#[clap(short, long, value_name = "FILE")]
#[arg(short, long, value_name = "FILE")]
pub config: Option<String>,
#[clap(subcommand)]
#[command(subcommand)]
pub command: Option<Command>,
}