mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
runcon/hashsum: remove references to get_matches_from_safe
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -210,7 +210,7 @@ struct 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user