mv: fix indentation within uu_app()
@@ -131,37 +131,32 @@ pub fn uu_app<'a>() -> Command<'a> {
.about(ABOUT)
.override_usage(format_usage(USAGE))
.infer_long_args(true)
- .arg(
- backup_control::arguments::backup()
- )
- .arg(
- backup_control::arguments::backup_no_args()
- )
+ .arg(backup_control::arguments::backup())
+ .arg(backup_control::arguments::backup_no_args())
.arg(
Arg::new(OPT_FORCE)
.short('f')
.long(OPT_FORCE)
- .help("do not prompt before overwriting")
+ .help("do not prompt before overwriting"),
)
.arg(
Arg::new(OPT_INTERACTIVE)
.short('i')
.long(OPT_INTERACTIVE)
- .help("prompt before override")
+ .help("prompt before override"),
)
.arg(
- Arg::new(OPT_NO_CLOBBER).short('n')
+ Arg::new(OPT_NO_CLOBBER)
+ .short('n')
.long(OPT_NO_CLOBBER)
- .help("do not overwrite an existing file")
+ .help("do not overwrite an existing file"),
)
.arg(
Arg::new(OPT_STRIP_TRAILING_SLASHES)
.long(OPT_STRIP_TRAILING_SLASHES)
- .help("remove any trailing slashes from each SOURCE argument")
- )
- .arg(
- backup_control::arguments::suffix()
+ .help("remove any trailing slashes from each SOURCE argument"),
)
+ .arg(backup_control::arguments::suffix())
.arg(
Arg::new(OPT_TARGET_DIRECTORY)
.short('t')
@@ -171,24 +166,23 @@ pub fn uu_app<'a>() -> Command<'a> {
.value_name("DIRECTORY")
.value_hint(clap::ValueHint::DirPath)
.conflicts_with(OPT_NO_TARGET_DIRECTORY)
- .allow_invalid_utf8(true)
+ .allow_invalid_utf8(true),
)
.arg(
Arg::new(OPT_NO_TARGET_DIRECTORY)
.short('T')
.long(OPT_NO_TARGET_DIRECTORY)
- .help("treat DEST as a normal file")
- )
- .arg(
- Arg::new(OPT_UPDATE)
- .short('u')
- .long(OPT_UPDATE)
- .help("move only when the SOURCE file is newer than the destination file or when the destination file is missing")
+ .help("treat DEST as a normal file"),
)
+ .arg(Arg::new(OPT_UPDATE).short('u').long(OPT_UPDATE).help(
+ "move only when the SOURCE file is newer than the destination file \
+ or when the destination file is missing",
+ ))
.arg(
Arg::new(OPT_VERBOSE)
.short('v')
- .long(OPT_VERBOSE).help("explain what is being done")
+ .long(OPT_VERBOSE)
+ .help("explain what is being done"),
)
.arg(
Arg::new(ARG_FILES)
@@ -197,7 +191,7 @@ pub fn uu_app<'a>() -> Command<'a> {
.min_values(1)
.required(true)
.allow_invalid_utf8(true)
- .value_hint(clap::ValueHint::AnyPath)
+ .value_hint(clap::ValueHint::AnyPath),
)
}
