diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2021-12-24 15:25:29 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-12-24 15:26:16 -0800 |
| commit | 5475fd6fe0aacad6f665edce17d48485acd24a93 (patch) | |
| tree | fe25303dcb8854bd246e5a0b71ed875d924d9c9a /src | |
| parent | doc: colorize -> color (diff) | |
| download | coreutils-5475fd6fe0aacad6f665edce17d48485acd24a93.tar.gz coreutils-5475fd6fe0aacad6f665edce17d48485acd24a93.zip | |
ls: improve doc for =WHEN
* src/ls.c (usage): Improve clarity of =WHEN args (Bug#52782).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ls.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -5424,18 +5424,13 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\ "), stdout); fputs (_("\ -C list entries by columns\n\ - --color[=WHEN] color the output; WHEN can be 'always' (default\ -\n\ - if omitted), 'auto', or 'never'; more info below\ -\n\ + --color[=WHEN] color the output WHEN; more info below\n\ -d, --directory list directories themselves, not their contents\n\ -D, --dired generate output designed for Emacs' dired mode\n\ "), stdout); fputs (_("\ -f list all entries in directory order\n\ - -F, --classify[=WHEN] append indicator (one of */=>@|) to entries;\n\ - WHEN can be 'always' (default if omitted),\n\ - 'auto', or 'never'\n\ + -F, --classify[=WHEN] append indicator (one of */=>@|) to entries WHEN\n\ --file-type likewise, except do not append '*'\n\ --format=WORD across -x, commas -m, horizontal -x, long -l,\n\ single-column -1, verbose -l, vertical -C\n\ @@ -5468,8 +5463,7 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\ (overridden by -a or -A)\n\ "), stdout); fputs (_("\ - --hyperlink[=WHEN] hyperlink file names; WHEN can be 'always'\n\ - (default if omitted), 'auto', or 'never'\n\ + --hyperlink[=WHEN] hyperlink file names WHEN\n\ "), stdout); fputs (_("\ --indicator-style=WORD append indicator with style WORD to entry names:\ @@ -5563,6 +5557,10 @@ Also the TIME_STYLE environment variable sets the default style to use.\n\ "), stdout); fputs (_("\ \n\ +The WHEN argument defaults to 'always' and can also be 'auto' or 'never'.\n\ +"), stdout); + fputs (_("\ +\n\ Using color to distinguish file types is disabled both by default and\n\ with --color=never. With --color=auto, ls emits color codes only when\n\ standard output is connected to a terminal. The LS_COLORS environment\n\ |
