Skip to content

Commit

Permalink
cat: set exit code for invalid arguments to 1 instead of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tertsdiepraam authored and sylvestre committed May 1, 2022
1 parent 0f92bd2 commit f70e439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/cat/src/cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
.collect_str(InvalidEncodingHandling::Ignore)
.accept_any();

let matches = uu_app().get_matches_from(args);
let matches = uu_app().try_get_matches_from(args)?;

let number_mode = if matches.is_present(options::NUMBER_NONBLANK) {
NumberingMode::NonEmpty
Expand Down

0 comments on commit f70e439

Please sign in to comment.