]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: ls: clarify --format options
authorPádraig Brady <P@draigBrady.com>
Wed, 29 Jan 2025 11:33:25 +0000 (11:33 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 29 Jan 2025 11:33:25 +0000 (11:33 +0000)
* src/ls.c (usage): Use parentheses to be less ambiguous as
to what are WORDs and equivalent short options.  This is also
consistent with the description of --sort and --indicator-style.
Fixes https://bugs.gnu.org/75916

src/ls.c

index f67167f1602dbcfefc7662f1c8352108d2703bc9..1bc85f4655dc6af098d4763301d8e374a2eb7ba0 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -5425,8 +5425,8 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
       --file-type            likewise, except do not append '*'\n\
 "), stdout);
       fputs (_("\
-      --format=WORD          across -x, commas -m, horizontal -x, long -l,\n\
-                             single-column -1, verbose -l, vertical -C\n\
+      --format=WORD          across,horizontal (-x), commas (-m), long (-l),\n\
+                             single-column (-1), verbose (-l), vertical (-C)\n\
 \n\
 "), stdout);
       fputs (_("\