diff --git a/src/uu/hashsum/src/hashsum.rs b/src/uu/hashsum/src/hashsum.rs index 42c884395..989e0f7f3 100644 --- a/src/uu/hashsum/src/hashsum.rs +++ b/src/uu/hashsum/src/hashsum.rs @@ -290,7 +290,7 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> { 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 // 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. diff --git a/src/uu/runcon/src/runcon.rs b/src/uu/runcon/src/runcon.rs index 1acfed9f4..ede324ede 100644 --- a/src/uu/runcon/src/runcon.rs +++ b/src/uu/runcon/src/runcon.rs @@ -210,7 +210,7 @@ struct Options { } fn parse_command_line(config: App, args: impl uucore::Args) -> Result { - 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);