ls: fix indentation within uu_app()

This commit is contained in:
Daniel Hofstetter 2022-09-01 13:38:46 +02:00
parent 282774a3ef
commit da0f1a98b5

View file

@ -914,7 +914,7 @@ pub fn uu_app<'a>() -> Command<'a> {
.arg(
Arg::new(options::HELP)
.long(options::HELP)
.help("Print help information.")
.help("Print help information."),
)
// Format arguments
.arg(
@ -979,14 +979,15 @@ pub fn uu_app<'a>() -> Command<'a> {
options::format::COLUMNS,
]),
)
.arg( // silently ignored (see #3624)
.arg(
// silently ignored (see #3624)
Arg::new(options::format::TAB_SIZE)
.short('T')
.long(options::format::TAB_SIZE)
.env("TABSIZE")
.takes_value(true)
.value_name("COLS")
.help("Assume tab stops at each COLS instead of 8 (unimplemented)")
.help("Assume tab stops at each COLS instead of 8 (unimplemented)"),
)
.arg(
Arg::new(options::format::COMMAS)
@ -1142,10 +1143,10 @@ pub fn uu_app<'a>() -> Command<'a> {
Arg::new(options::time::CHANGE)
.short('c')
.help(
"If the long listing format (e.g., -l, -o) is being used, print the status \
change time (the 'ctime' in the inode) instead of the modification time. When \
explicitly sorting by time (--sort=time or -t) or when not using a long listing \
format, sort according to the status change time.",
"If the long listing format (e.g., -l, -o) is being used, print the \
status change time (the 'ctime' in the inode) instead of the modification \
time. When explicitly sorting by time (--sort=time or -t) or when not \
using a long listing format, sort according to the status change time.",
)
.overrides_with_all(&[options::TIME, options::time::ACCESS, options::time::CHANGE]),
)
@ -1153,10 +1154,10 @@ pub fn uu_app<'a>() -> Command<'a> {
Arg::new(options::time::ACCESS)
.short('u')
.help(
"If the long listing format (e.g., -l, -o) is being used, print the status \
access time instead of the modification time. When explicitly sorting by time \
(--sort=time or -t) or when not using a long listing format, sort according to the \
access time.",
"If the long listing format (e.g., -l, -o) is being used, print the \
status access time instead of the modification time. When explicitly \
sorting by time (--sort=time or -t) or when not using a long listing \
format, sort according to the access time.",
)
.overrides_with_all(&[options::TIME, options::time::ACCESS, options::time::CHANGE]),
)
@ -1367,7 +1368,10 @@ pub fn uu_app<'a>() -> Command<'a> {
Arg::new(options::size::KIBIBYTES)
.short('k')
.long(options::size::KIBIBYTES)
.help("default to 1024-byte blocks for file system usage; used only with -s and per directory totals"),
.help(
"default to 1024-byte blocks for file system usage; used only with -s and per \
directory totals",
),
)
.arg(
Arg::new(options::size::SI)
@ -1461,9 +1465,10 @@ pub fn uu_app<'a>() -> Command<'a> {
\tnone - Do not classify. This is the default.\n\
\tauto - Only classify if standard output is a terminal.\n\
\talways - Always classify.\n\
Specifying --classify and no when is equivalent to --classify=always. This will not follow\
symbolic links listed on the command line unless the --dereference-command-line (-H),\
--dereference (-L), or --dereference-command-line-symlink-to-dir options are specified.",
Specifying --classify and no when is equivalent to --classify=always. This will \
not follow symbolic links listed on the command line unless the \
--dereference-command-line (-H), --dereference (-L), or \
--dereference-command-line-symlink-to-dir options are specified.",
)
.takes_value(true)
.value_name("when")
@ -1527,8 +1532,10 @@ pub fn uu_app<'a>() -> Command<'a> {
.arg(
Arg::new(options::GROUP_DIRECTORIES_FIRST)
.long(options::GROUP_DIRECTORIES_FIRST)
.help("group directories before files; can be augmented with \
a --sort option, but any use of --sort=none (-U) disables grouping"),
.help(
"group directories before files; can be augmented with \
a --sort option, but any use of --sort=none (-U) disables grouping",
),
)
// Positional arguments
.arg(
@ -1536,7 +1543,7 @@ pub fn uu_app<'a>() -> Command<'a> {
.multiple_occurrences(true)
.takes_value(true)
.value_hint(clap::ValueHint::AnyPath)
.value_parser(ValueParser::os_string())
.value_parser(ValueParser::os_string()),
)
.after_help(
"The TIME_STYLE argument can be full-iso, long-iso, iso. \