1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

ls: use try_get_matches_from instead of

get_matches_from to replace clap's exit code
This commit is contained in:
Daniel Hofstetter 2023-10-24 10:07:28 +02:00
parent b9c54f8b5f
commit d7b7dfeb16

View file

@ -1027,7 +1027,7 @@ impl Config {
pub fn uumain(args: impl uucore::Args) -> UResult<()> { pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let command = uu_app(); let command = uu_app();
let matches = command.get_matches_from(args); let matches = command.try_get_matches_from(args)?;
let config = Config::from(&matches)?; let config = Config::from(&matches)?;