diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/basename.c | 6 | ||||
-rw-r--r-- | coreutils/cat.c | 6 | ||||
-rw-r--r-- | coreutils/chroot.c | 8 | ||||
-rw-r--r-- | coreutils/date.c | 14 | ||||
-rw-r--r-- | coreutils/length.c | 2 |
5 files changed, 24 insertions, 12 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index 5fe5e0f03..efd07e272 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -29,7 +29,11 @@ extern int basename_main(int argc, char **argv) | |||
29 | char* s, *s1; | 29 | char* s, *s1; |
30 | 30 | ||
31 | if ((argc < 2) || (**(argv + 1) == '-')) { | 31 | if ((argc < 2) || (**(argv + 1) == '-')) { |
32 | usage("basename [file ...]\n"); | 32 | usage("basename [FILE ...]\n" |
33 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
34 | "\nStrips directory path and suffixes from FILE(s).\n" | ||
35 | #endif | ||
36 | ); | ||
33 | } | 37 | } |
34 | argv++; | 38 | argv++; |
35 | 39 | ||
diff --git a/coreutils/cat.c b/coreutils/cat.c index f7a6bfa7b..561b24f3f 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -45,7 +45,11 @@ extern int cat_main(int argc, char **argv) | |||
45 | } | 45 | } |
46 | 46 | ||
47 | if (**(argv + 1) == '-') { | 47 | if (**(argv + 1) == '-') { |
48 | usage("cat [file ...]\n"); | 48 | usage("cat [FILE ...]\n" |
49 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
50 | "\nConcatenates FILE(s) and prints them to the standard output.\n" | ||
51 | #endif | ||
52 | ); | ||
49 | } | 53 | } |
50 | argc--; | 54 | argc--; |
51 | 55 | ||
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 63fa4d146..34116a60e 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -28,9 +28,11 @@ | |||
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | 29 | ||
30 | 30 | ||
31 | static const char chroot_usage[] = "chroot NEWROOT [COMMAND...]\n\n" | 31 | static const char chroot_usage[] = "chroot NEWROOT [COMMAND...]\n" |
32 | 32 | #ifndef BB_FEATURE_TRIVIAL_HELP | |
33 | "Run COMMAND with root directory set to NEWROOT.\n"; | 33 | "\nRun COMMAND with root directory set to NEWROOT.\n" |
34 | #endif | ||
35 | ; | ||
34 | 36 | ||
35 | 37 | ||
36 | 38 | ||
diff --git a/coreutils/date.c b/coreutils/date.c index 25ce05d2d..dd054be66 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -40,12 +40,14 @@ | |||
40 | mail commands */ | 40 | mail commands */ |
41 | 41 | ||
42 | static const char date_usage[] = "date [OPTION]... [+FORMAT]\n" | 42 | static const char date_usage[] = "date [OPTION]... [+FORMAT]\n" |
43 | " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n\n" | 43 | " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n" |
44 | "Display the current time in the given FORMAT, or set the system date.\n" | 44 | #ifndef BB_FEATURE_TRIVIAL_HELP |
45 | "\nOptions:\n\t-R\t\toutput RFC-822 compliant date string\n" | 45 | "\nDisplays the current time in the given FORMAT, or sets the system date.\n" |
46 | "\t-s\t\tset time described by STRING\n" | 46 | "\nOptions:\n\t-R\tOutputs RFC-822 compliant date string\n" |
47 | 47 | "\t-s\tSets time described by STRING\n" | |
48 | "\t-u\t\tprint or set Coordinated Universal Time\n"; | 48 | "\t-u\tPrints or sets Coordinated Universal Time\n" |
49 | #endif | ||
50 | ; | ||
49 | 51 | ||
50 | 52 | ||
51 | /* Input parsing code is always bulky - used heavy duty libc stuff as | 53 | /* Input parsing code is always bulky - used heavy duty libc stuff as |
diff --git a/coreutils/length.c b/coreutils/length.c index 00e5a171b..4cbe7e17b 100644 --- a/coreutils/length.c +++ b/coreutils/length.c | |||
@@ -9,6 +9,6 @@ extern int length_main(int argc, char **argv) | |||
9 | if (argc != 2 || **(argv + 1) == '-') { | 9 | if (argc != 2 || **(argv + 1) == '-') { |
10 | usage("length string\n"); | 10 | usage("length string\n"); |
11 | } | 11 | } |
12 | printf("%d\n", strlen(argv[1])); | 12 | printf("%lu\n", (long)strlen(argv[1])); |
13 | return (TRUE); | 13 | return (TRUE); |
14 | } | 14 | } |