aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dd.c18
-rw-r--r--coreutils/df.c7
-rw-r--r--coreutils/dirname.c6
-rw-r--r--coreutils/du.c11
-rw-r--r--coreutils/echo.c9
5 files changed, 33 insertions, 18 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 303500008..5d9993d8b 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -41,17 +41,19 @@ typedef unsigned long long int uintmax_t;
41#endif 41#endif
42 42
43static const char dd_usage[] = 43static const char dd_usage[] =
44 "dd [if=name] [of=name] [bs=n] [count=n] [skip=n] [seek=n]\n\n" 44 "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N]\n"
45 "Copy a file, converting and formatting according to options\n\n" 45#ifndef BB_FEATURE_TRIVIAL_HELP
46 "\nCopy a file, converting and formatting according to options\n\n"
46 "\tif=FILE\tread from FILE instead of stdin\n" 47 "\tif=FILE\tread from FILE instead of stdin\n"
47 "\tof=FILE\twrite to FILE instead of stdout\n" 48 "\tof=FILE\twrite to FILE instead of stdout\n"
48 "\tbs=n\tread and write n bytes at a time\n" 49 "\tbs=N\tread and write N bytes at a time\n"
49 "\tcount=n\tcopy only n input blocks\n" 50 "\tcount=N\tcopy only N input blocks\n"
50 "\tskip=n\tskip n input blocks\n" 51 "\tskip=N\tskip N input blocks\n"
51 "\tseek=n\tskip n output blocks\n" 52 "\tseek=N\tskip N output blocks\n"
52
53 "\n" 53 "\n"
54 "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"; 54 "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"
55#endif
56 ;
55 57
56 58
57 59
diff --git a/coreutils/df.c b/coreutils/df.c
index c38720454..417065943 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -28,8 +28,11 @@
28#include <sys/stat.h> 28#include <sys/stat.h>
29#include <sys/vfs.h> 29#include <sys/vfs.h>
30 30
31static const char df_usage[] = "df [filesystem ...]\n\n" 31static const char df_usage[] = "df [filesystem ...]\n"
32 "Print the filesystem space used and space available.\n"; 32#ifndef BB_FEATURE_TRIVIAL_HELP
33 "\nPrint the filesystem space used and space available.\n"
34#endif
35 ;
33 36
34extern const char mtab_file[]; /* Defined in utility.c */ 37extern const char mtab_file[]; /* Defined in utility.c */
35 38
diff --git a/coreutils/dirname.c b/coreutils/dirname.c
index 528b89a56..ce3cd6f03 100644
--- a/coreutils/dirname.c
+++ b/coreutils/dirname.c
@@ -28,7 +28,11 @@ extern int dirname_main(int argc, char **argv)
28 char* s; 28 char* s;
29 29
30 if ((argc < 2) || (**(argv + 1) == '-')) { 30 if ((argc < 2) || (**(argv + 1) == '-')) {
31 usage("dirname [file ...]\n"); 31 usage("dirname [FILENAME ...]\n"
32#ifndef BB_FEATURE_TRIVIAL_HELP
33 "\nStrips non-directory suffix from FILENAME\n"
34#endif
35 );
32 } 36 }
33 argv++; 37 argv++;
34 38
diff --git a/coreutils/du.c b/coreutils/du.c
index c4fb3a38d..9c699978e 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -36,12 +36,15 @@
36typedef void (Display) (long, char *); 36typedef void (Display) (long, char *);
37 37
38static const char du_usage[] = 38static const char du_usage[] =
39 "du [OPTION]... [FILE]...\n\n" 39 "du [OPTION]... [FILE]...\n"
40 "Summarize disk space used for each FILE and/or directory.\n" 40#ifndef BB_FEATURE_TRIVIAL_HELP
41 "\nSummarizes disk space used for each FILE and/or directory.\n"
41 "Disk space is printed in units of 1024 bytes.\n\n" 42 "Disk space is printed in units of 1024 bytes.\n\n"
42 "Options:\n" 43 "Options:\n"
43 "\t-l\tcount sizes many times if hard linked\n" 44 "\t-l\tcount sizes many times if hard linked\n"
44 "\t-s\tdisplay only a total for each argument\n"; 45 "\t-s\tdisplay only a total for each argument\n"
46#endif
47 ;
45 48
46static int du_depth = 0; 49static int du_depth = 0;
47static int count_hardlinks = 0; 50static int count_hardlinks = 0;
@@ -181,7 +184,7 @@ int du_main(int argc, char **argv)
181 exit(0); 184 exit(0);
182} 185}
183 186
184/* $Id: du.c,v 1.18 2000/04/28 00:18:56 erik Exp $ */ 187/* $Id: du.c,v 1.19 2000/05/10 05:05:45 erik Exp $ */
185/* 188/*
186Local Variables: 189Local Variables:
187c-file-style: "linux" 190c-file-style: "linux"
diff --git a/coreutils/echo.c b/coreutils/echo.c
index 2405d0ae1..b31f2229b 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -26,12 +26,15 @@
26#include <stdio.h> 26#include <stdio.h>
27 27
28static const char uname_usage[] = 28static const char uname_usage[] =
29 "echo [-neE] [ARG ...]\n\n" 29 "echo [-neE] [ARG ...]\n"
30 "Prints the specified ARGs to stdout\n\n" 30#ifndef BB_FEATURE_TRIVIAL_HELP
31 "\nPrints the specified ARGs to stdout\n\n"
31 "Options:\n" 32 "Options:\n"
32 "\t-n\tsuppress trailing newline\n" 33 "\t-n\tsuppress trailing newline\n"
33 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n" 34 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
34 "\t-E\tdisable interpretation of backslash-escaped characters\n"; 35 "\t-E\tdisable interpretation of backslash-escaped characters\n"
36#endif
37 ;
35 38
36extern int 39extern int
37echo_main(int argc, char** argv) 40echo_main(int argc, char** argv)