cargo: Bump clap
to 4.3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Bump `clap` to latest version.
This commit is contained in:
parent
35b31b2a15
commit
57d4f10b41
3 changed files with 98 additions and 88 deletions
13
src/cli.rs
13
src/cli.rs
|
@ -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>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue