1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

runcon/hashsum: remove references to get_matches_from_safe

This commit is contained in:
Terts Diepraam 2022-01-18 16:34:06 +01:00
parent 77229aea86
commit 4b79419514
2 changed files with 2 additions and 2 deletions

View file

@ -290,7 +290,7 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> {
let app = uu_app(&binary_name); let app = uu_app(&binary_name);
// FIXME: this should use get_matches_from_safe() and crash!(), but at the moment that just // FIXME: this should use try_get_matches_from() and crash!(), but at the moment that just
// causes "error: " to be printed twice (once from crash!() and once from clap). With // causes "error: " to be printed twice (once from crash!() and once from clap). With
// the current setup, the name of the utility is not printed, but I think this is at // the current setup, the name of the utility is not printed, but I think this is at
// least somewhat better from a user's perspective. // least somewhat better from a user's perspective.

View file

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