1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

tr: set "after help" in uu_app instead of uumain

This commit is contained in:
Daniel Hofstetter 2025-06-09 15:34:16 +02:00
parent cd7a308843
commit ed70d7bf16

View file

@ -31,9 +31,7 @@ mod options {
#[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let matches = uu_app()
.after_help(get_message("tr-after-help"))
.try_get_matches_from(args)?;
let matches = uu_app().try_get_matches_from(args)?;
let delete_flag = matches.get_flag(options::DELETE);
let complement_flag = matches.get_flag(options::COMPLEMENT);
@ -171,6 +169,7 @@ pub fn uu_app() -> Command {
.version(uucore::crate_version!())
.about(get_message("tr-about"))
.override_usage(format_usage(&get_message("tr-usage")))
.after_help(get_message("tr-after-help"))
.infer_long_args(true)
.trailing_var_arg(true)
.arg(