mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
ls: use try_get_matches_from instead of
get_matches_from to replace clap's exit code
This commit is contained in:
parent
b9c54f8b5f
commit
d7b7dfeb16
1 changed files with 1 additions and 1 deletions
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue