1
Fork 0
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:
Daniel Hofstetter 2025-06-02 16:19:33 +02:00
parent dfc4e3efe5
commit 25c7ed5b1e

View file

@ -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(