mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
runcon/hashsum: remove references to get_matches_from_safe
This commit is contained in:
parent
77229aea86
commit
4b79419514
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue