summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-21 07:07:48 +0000
committerMiles Bader <miles@gnu.org>1996-07-21 07:07:48 +0000
commitd97bf68770750512fdce4f6bdeeb5dff76da8257 (patch)
treea96be2164905cc2bf94060faa98de38e6c29ac46
parentbdfa52f3f717b9331d4ec738ef66ee6280691c80 (diff)
(main): For no args, use argp_usage.
(options): Minor fixes.
-rw-r--r--utils/portinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/portinfo.c b/utils/portinfo.c
index 46cc5160..10f5fe8f 100644
--- a/utils/portinfo.c
+++ b/utils/portinfo.c
@@ -49,7 +49,7 @@ static const struct argp_option options[] = {
{"receive", 'r', 0, 0, "Show ports with receive rights"},
{"send", 's', 0, 0, "Show ports with send rights"},
{"send-once", 'o', 0, 0, "Show ports with send once rights"},
- {"dead-names",'d', 0, 0, "Show ports with dead name rights"},
+ {"dead-names",'d', 0, 0, "Show dead names"},
{"port-sets", 'p', 0, 0, "Show port sets"},
{0,0,0,0, "Translating port names between tasks:", 3},
@@ -142,7 +142,7 @@ main (int argc, char **argv)
break;
case ARGP_KEY_NO_ARGS:
- argp_error (state, "No process specified");
+ argp_usage (state);
return EINVAL;
case ARGP_KEY_ARG: