summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorOndřej Vašík <ovasik@redhat.com>2009-09-10 12:33:41 +0100
committerPádraig Brady <P@draigBrady.com>2009-09-10 15:28:50 +0100
commitb64d9b6d9e7fdc96614e3cbef001f8e078fe9588 (patch)
treedfe32e71e396a8de020ef5edcde5012b4ed21d6f /src/ls.c
parent0bbb9d7785957437182fc633b2d387cc51ee918e (diff)
downloadcoreutils-b64d9b6d9e7fdc96614e3cbef001f8e078fe9588.tar.xz
doc: improve various BLOCKSIZE and SIZE help
* doc/coreutils.texi (multiplierSuffixes): Mention that the suffix can be specified without a leading number * src/split.c (usage): Refactor SIZE help to within a function * src/truncate.c (usage): Likewise * src/ls.c (usage): Likewise * src/df.c (usage): Likewise. Also add a function with BLOCKSIZE help * src/du.c (usage): Likewise. * src/system.h: Define 2 functions to emit common help text This was prompted by https://bugzilla.redhat.com/show_bug.cgi?id=511188
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ls.c b/src/ls.c
index 553090dc5..b62ea128c 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -4543,7 +4543,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-b, --escape print octal escapes for nongraphic characters\n\
"), stdout);
fputs (_("\
- --block-size=SIZE use SIZE-byte blocks\n\
+ --block-size=SIZE use SIZE-byte blocks. See SIZE format below\n\
-B, --ignore-backups do not list implied entries ending with ~\n\
-c with -lt: sort by, and show, ctime (time of last\n\
modification of file status information)\n\
@@ -4664,10 +4664,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
- fputs (_("\n\
-SIZE may be (or may be an integer optionally followed by) one of following:\n\
-kB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.\n\
-"), stdout);
+ emit_size_note ();
fputs (_("\
\n\
By default, color is not used to distinguish types of files. That is\n\