mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
mv: fix help output
This commit is contained in:
parent
93c8623da9
commit
ea2b725abb
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue