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