From ea2b725abbac4a3108612c87b424a6ed15cb7284 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 5 May 2023 15:16:41 +0200 Subject: [PATCH] mv: fix help output --- src/uu/mv/src/mv.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/uu/mv/src/mv.rs b/src/uu/mv/src/mv.rs index 2a2d6d348..f26920227 100644 --- a/src/uu/mv/src/mv.rs +++ b/src/uu/mv/src/mv.rs @@ -70,7 +70,7 @@ static ARG_FILES: &str = "files"; #[uucore::main] pub fn uumain(args: impl uucore::Args) -> UResult<()> { - let mut app = uu_app().after_help(backup_control::BACKUP_CONTROL_LONG_HELP); + let mut app = uu_app(); let matches = app.try_get_matches_from_mut(args)?; if !matches.contains_id(OPT_TARGET_DIRECTORY) @@ -138,7 +138,10 @@ pub fn uu_app() -> Command { .version(crate_version!()) .about(ABOUT) .override_usage(format_usage(USAGE)) - .after_help(AFTER_HELP) + .after_help(format!( + "{AFTER_HELP}\n\n{}", + backup_control::BACKUP_CONTROL_LONG_HELP + )) .infer_long_args(true) .arg( Arg::new(OPT_FORCE)