diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-02-27 16:45:39 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-02-27 16:45:39 +0100 |
commit | 4a6748662aaaf20161e6e81961775b3a4b599e46 (patch) | |
tree | 9da698e9d610ed666069dd712b93dfff57b7c574 | |
parent | 87e216294af9eec39c0c1d553555f8a98c15db38 (diff) | |
download | busybox-w32-4a6748662aaaf20161e6e81961775b3a4b599e46.tar.gz busybox-w32-4a6748662aaaf20161e6e81961775b3a4b599e46.tar.bz2 busybox-w32-4a6748662aaaf20161e6e81961775b3a4b599e46.zip |
top: tweak --help
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/stty.c | 18 | ||||
-rw-r--r-- | procps/top.c | 5 |
2 files changed, 8 insertions, 15 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index 6251f2aef..d1309f9aa 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -5,18 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | /* Usage: stty [-ag] [-F device] [setting...] | 8 | /* David MacKenzie <djm@gnu.ai.mit.edu> |
9 | * | ||
10 | * Options: | ||
11 | * -a Write all current settings to stdout in human-readable form. | ||
12 | * -g Write all current settings to stdout in stty-readable form. | ||
13 | * -F Open and use the specified device instead of stdin | ||
14 | * | ||
15 | * If no args are given, write to stdout the baud rate and settings that | ||
16 | * have been changed from their defaults. Mode reading and changes | ||
17 | * are done on the specified device, or stdin if none was specified. | ||
18 | * | ||
19 | * David MacKenzie <djm@gnu.ai.mit.edu> | ||
20 | * | 9 | * |
21 | * Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001 | 10 | * Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001 |
22 | */ | 11 | */ |
@@ -40,6 +29,11 @@ | |||
40 | //usage: "\n -g Print in stty-readable form" | 29 | //usage: "\n -g Print in stty-readable form" |
41 | //usage: "\n [SETTING] See manpage" | 30 | //usage: "\n [SETTING] See manpage" |
42 | 31 | ||
32 | /* If no args are given, write to stdout the baud rate and settings that | ||
33 | * have been changed from their defaults. Mode reading and changes | ||
34 | * are done on the specified device, or stdin if none was specified. | ||
35 | */ | ||
36 | |||
43 | #include "libbb.h" | 37 | #include "libbb.h" |
44 | #include "common_bufsiz.h" | 38 | #include "common_bufsiz.h" |
45 | 39 | ||
diff --git a/procps/top.c b/procps/top.c index 3db077060..625409755 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -1043,7 +1043,7 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval) | |||
1043 | //usage:# define IF_SHOW_THREADS_OR_TOP_SMP(...) | 1043 | //usage:# define IF_SHOW_THREADS_OR_TOP_SMP(...) |
1044 | //usage:#endif | 1044 | //usage:#endif |
1045 | //usage:#define top_trivial_usage | 1045 | //usage:#define top_trivial_usage |
1046 | //usage: "[-b] [-nCOUNT] [-dSECONDS]" IF_FEATURE_TOPMEM(" [-m]") | 1046 | //usage: "[-b"IF_FEATURE_TOPMEM("m")"] [-n COUNT] [-d SECONDS]" |
1047 | //usage:#define top_full_usage "\n\n" | 1047 | //usage:#define top_full_usage "\n\n" |
1048 | //usage: "Provide a view of process activity in real time." | 1048 | //usage: "Provide a view of process activity in real time." |
1049 | //usage: "\n""Read the status of all processes from /proc each SECONDS" | 1049 | //usage: "\n""Read the status of all processes from /proc each SECONDS" |
@@ -1068,12 +1068,11 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval) | |||
1068 | //usage: IF_FEATURE_TOP_SMP_CPU("1: toggle SMP") | 1068 | //usage: IF_FEATURE_TOP_SMP_CPU("1: toggle SMP") |
1069 | //usage: ) | 1069 | //usage: ) |
1070 | //usage: "\n"" Q,^C: exit" | 1070 | //usage: "\n"" Q,^C: exit" |
1071 | //usage: "\n" | ||
1072 | //usage: "\n""Options:" | 1071 | //usage: "\n""Options:" |
1073 | //usage: ) | 1072 | //usage: ) |
1074 | //usage: "\n"" -b Batch mode" | 1073 | //usage: "\n"" -b Batch mode" |
1075 | //usage: "\n"" -n N Exit after N iterations" | 1074 | //usage: "\n"" -n N Exit after N iterations" |
1076 | //usage: "\n"" -d N Delay between updates" | 1075 | //usage: "\n"" -d SEC Delay between updates" |
1077 | //usage: IF_FEATURE_TOPMEM( | 1076 | //usage: IF_FEATURE_TOPMEM( |
1078 | //usage: "\n"" -m Same as 's' key" | 1077 | //usage: "\n"" -m Same as 's' key" |
1079 | //usage: ) | 1078 | //usage: ) |