Skip to content

Commit

Permalink
long CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
2AUK committed Oct 19, 2023
1 parent 0fd2eff commit 80c14e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ fn parse_args() -> Result<Args, lexopt::Error> {
let mut parser = lexopt::Parser::from_env();
while let Some(arg) = parser.next()? {
match arg {
Short('q') => verbosity = Verbosity::Quiet,
Short('v') => verbosity = Verbosity::Verbose,
Short('l') => verbosity = Verbosity::VeryVerbose,
Short('q') | Long("quiet") => verbosity = Verbosity::Quiet,
Short('v') | Long("verbose") => verbosity = Verbosity::Verbose,
Short('l') | Long("loud") => verbosity = Verbosity::VeryVerbose,
Short('c') | Long("compress") => compress = true,
Value(val) => input_file = Some(val.into()),
_ => return Err(arg.unexpected()),
Expand Down

0 comments on commit 80c14e6

Please sign in to comment.