Skip to content

Commit

Permalink
ls: use try_get_matches_from instead of
Browse files Browse the repository at this point in the history
get_matches_from to replace clap's exit code
  • Loading branch information
cakebaker committed Oct 24, 2023
1 parent b9c54f8 commit d7b7dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/ls/src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ impl Config {
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let command = uu_app();

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

let config = Config::from(&matches)?;

Expand Down

0 comments on commit d7b7dfe

Please sign in to comment.