Skip to content

Commit

Permalink
base: set exit code to 1 for clap errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tertsdiepraam committed May 4, 2022
1 parent 77f1e18 commit 4218a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/base32/src/base_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn parse_base_cmd_args(args: impl uucore::Args, about: &str, usage: &str) ->
let arg_list = args
.collect_str(InvalidEncodingHandling::ConvertLossy)
.accept_any();
Config::from(&command.get_matches_from(arg_list))
Config::from(&command.try_get_matches_from(arg_list)?)
}

pub fn base_app<'a>(about: &'a str, usage: &'a str) -> Command<'a> {
Expand Down

0 comments on commit 4218a30

Please sign in to comment.