summaryrefslogtreecommitdiff
path: root/usr.bin/ipcs/ipcs.c
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2000-06-03 04:12:48 +0000
committersimonb <simonb@NetBSD.org>2000-06-03 04:12:48 +0000
commit01f089f91bd2debe53baebb2e6b1a209f9767f3e (patch)
tree2c6573fef756c6ff0df74f8d846758da5a561204 /usr.bin/ipcs/ipcs.c
parent7474436532bba66f0525661856772e248702a463 (diff)
Include system info command line options [-MQST] in usage message.
Bomb out with usage message if extra command line arguments are present.
Diffstat (limited to 'usr.bin/ipcs/ipcs.c')
-rw-r--r--usr.bin/ipcs/ipcs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c
index dbedaac4577..4158fb245f1 100644
--- a/usr.bin/ipcs/ipcs.c
+++ b/usr.bin/ipcs/ipcs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ipcs.c,v 1.23 2000/06/03 03:58:45 simonb Exp $ */
+/* $NetBSD: ipcs.c,v 1.24 2000/06/03 04:12:48 simonb Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -217,6 +217,9 @@ main(int argc, char *argv[])
usage();
}
+ if (argc - optind > 0)
+ usage();
+
if (namelist == NULL && core == NULL) {
if (display & (MSGINFO | MSGTOTAL))
msg_sysctl();
@@ -858,7 +861,7 @@ usage(void)
{
fprintf(stderr,
- "usage: %s [-abcmopqst] [-C corefile] [-N namelist]\n",
+ "usage: %s [-abcmopqstMQST] [-C corefile] [-N namelist]\n",
__progname);
exit(1);
}