diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-13 06:37:35 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-13 06:37:59 +0200 |
commit | 3e80cef8b2575f871aeea01917edcfb25356c290 (patch) | |
tree | b6fdc36f99835e3ad184b258f69ce2fe87f9369f /src/cli.rs | |
parent | build(update.sh): First upgrade then update (diff) | |
download | lpm-3e80cef8b2575f871aeea01917edcfb25356c290.zip |
feat(cli): Switch to stderrlog, configured by cli options
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs index fe1b194..9fee349 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,4 +1,4 @@ -use clap::{Parser, Subcommand}; +use clap::{ArgAction, Parser, Subcommand}; /// A project manager for LaTeX #[derive(Parser, Debug)] @@ -6,6 +6,14 @@ use clap::{Parser, Subcommand}; pub struct Args { #[command(subcommand)] pub cli: Command, + + /// Increase message verbosity + #[arg(long="verbose", short = 'v', action = ArgAction::Count)] + pub verbosity: u8, + + /// Silence all output + #[arg(long, short = 'q')] + pub quiet: bool, } #[derive(Subcommand, Debug)] |