1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

mv: remove long help, change static to const, remove whitespace

This commit is contained in:
Piotr Kwiecinski 2023-03-23 16:06:10 +01:00
parent 0768c63361
commit 04c0b5118d
2 changed files with 2 additions and 9 deletions

View file

@ -1,7 +1,6 @@
# mv
```
mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...

View file

@ -53,8 +53,7 @@ pub enum OverwriteMode {
Force,
}
static ABOUT: &str = help_about!("mv.md");
static LONG_HELP: &str = "";
const ABOUT: &str = help_about!("mv.md");
const USAGE: &str = help_usage!("mv.md");
static OPT_FORCE: &str = "force";
@ -70,12 +69,7 @@ static ARG_FILES: &str = "files";
#[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let help = format!(
"{}\n{}",
LONG_HELP,
backup_control::BACKUP_CONTROL_LONG_HELP
);
let mut app = uu_app().after_help(help);
let mut app = uu_app();
let matches = app.try_get_matches_from_mut(args)?;
if !matches.contains_id(OPT_TARGET_DIRECTORY)