diff options
Diffstat (limited to 'yt/src/cli.rs')
-rw-r--r-- | yt/src/cli.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yt/src/cli.rs b/yt/src/cli.rs index d7e084a..5e7af5b 100644 --- a/yt/src/cli.rs +++ b/yt/src/cli.rs @@ -22,7 +22,7 @@ use crate::{ }; #[derive(Parser, Debug)] -#[clap(author, version, about, long_about = None)] +#[clap(author, about, long_about = None)] #[allow(clippy::module_name_repetitions)] /// An command line interface to select, download and watch videos pub struct CliArgs { @@ -30,6 +30,10 @@ pub struct CliArgs { /// The subcommand to execute [default: select] pub command: Option<Command>, + /// Show the version and exit + #[arg(long, short = 'V', action= ArgAction::SetTrue)] + pub version: bool, + /// Increase message verbosity #[arg(long="verbose", short = 'v', action = ArgAction::Count)] pub verbosity: u8, |