mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
mv: remove long help, change static to const, remove whitespace
This commit is contained in:
parent
0768c63361
commit
04c0b5118d
2 changed files with 2 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
# mv
|
||||
|
||||
```
|
||||
|
||||
mv [OPTION]... [-T] SOURCE DEST
|
||||
mv [OPTION]... SOURCE... DIRECTORY
|
||||
mv [OPTION]... -t DIRECTORY SOURCE...
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue