summaryrefslogtreecommitdiff
path: root/procps/pmap.c
diff options
context:
space:
mode:
authorDenys Vlasenko2017-08-04 18:36:55 +0200
committerDenys Vlasenko2017-08-04 18:37:34 +0200
commit947b2391c07f8a11f7bd4658f77cd03172fc221a (patch)
treec1cdedad593852a481778ffb41e30d42f03a4767 /procps/pmap.c
parent83d7785e413bbfc4c639c855a6e47f64bdc5da9a (diff)
downloadbusybox-947b2391c07f8a11f7bd4658f77cd03172fc221a.zip
busybox-947b2391c07f8a11f7bd4658f77cd03172fc221a.tar.gz
pmap: tweak help text, show usage if no params are given
Noticed while auditing nofork/noexec status function old new delta pmap_main 70 80 +10 packed_usage 31747 31744 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/pmap.c')
-rw-r--r--procps/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/pmap.c b/procps/pmap.c
index c8f7288..3dc7339 100644
--- a/procps/pmap.c
+++ b/procps/pmap.c
@@ -18,7 +18,7 @@
//kbuild:lib-$(CONFIG_PMAP) += pmap.o
//usage:#define pmap_trivial_usage
-//usage: "[-xq] PID"
+//usage: "[-xq] PID..."
//usage:#define pmap_full_usage "\n\n"
//usage: "Display process memory usage"
//usage: "\n"
@@ -96,6 +96,7 @@ int pmap_main(int argc UNUSED_PARAM, char **argv)
unsigned opts;
int ret;
+ opt_complementary = "-1"; /* min one arg */
opts = getopt32(argv, "xq");
argv += optind;