From d97bf68770750512fdce4f6bdeeb5dff76da8257 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 21 Jul 1996 07:07:48 +0000 Subject: (main): For no args, use argp_usage. (options): Minor fixes. --- utils/portinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/portinfo.c') 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: -- cgit v1.2.3