summaryrefslogtreecommitdiff
path: root/src/truncate.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/truncate.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/truncate.c')
-rw-r--r--src/truncate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/truncate.c b/src/truncate.c
index 0cb7b35ee..77783794e 100644
--- a/src/truncate.c
+++ b/src/truncate.c
@@ -124,10 +124,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-s, --size=SIZE use this SIZE\n"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
- fputs (_("\n\
-SIZE is a number which may be followed by one of the following suffixes:\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\
SIZE may also be prefixed by one of the following modifying characters:\n\
`+' extend by, `-' reduce by, `<' at most, `>' at least,\n\