chcon: use try_get_matches_from

This commit is contained in:
Terts Diepraam 2022-01-18 13:06:02 +01:00
parent e345768484
commit 0a30c43bb6

View file

@ -308,7 +308,7 @@ struct Options {
}
fn parse_command_line(config: clap::App, args: impl uucore::Args) -> Result<Options> {
let matches = config.get_matches_from_safe(args)?;
let matches = config.try_get_matches_from(args)?;
let verbose = matches.is_present(options::VERBOSE);