mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
rm: set "after help" in uu_app instead of uumain
This commit is contained in:
parent
dfc4e3efe5
commit
25c7ed5b1e
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,7 @@ static ARG_FILES: &str = "files";
|
|||
|
||||
#[uucore::main]
|
||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
let matches = uu_app().after_help(AFTER_HELP).try_get_matches_from(args)?;
|
||||
let matches = uu_app().try_get_matches_from(args)?;
|
||||
|
||||
let files: Vec<&OsStr> = matches
|
||||
.get_many::<OsString>(ARG_FILES)
|
||||
|
@ -204,6 +204,7 @@ pub fn uu_app() -> Command {
|
|||
.version(uucore::crate_version!())
|
||||
.about(ABOUT)
|
||||
.override_usage(format_usage(USAGE))
|
||||
.after_help(AFTER_HELP)
|
||||
.infer_long_args(true)
|
||||
.args_override_self(true)
|
||||
.arg(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue