From 7f040686cfa4a84f16ca1d0404bdc2f7371b50af Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 4 Dec 1995 22:00:13 +0000 Subject: (main): Correctly whether to print prefix by default. (options): Fix help strings. --- utils/storeinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/storeinfo.c b/utils/storeinfo.c index 00d568a8..90fc8296 100644 --- a/utils/storeinfo.c +++ b/utils/storeinfo.c @@ -39,8 +39,8 @@ static struct argp_option options[] = {"size", 's', 0, 0, "print the size, in bytes, of FILE"}, {"runs", 'r', 0, 0, "print the runs of blocks in FILE"}, {"dereference", 'L', 0, 0, "if FILE is a symbolic link, follow it"}, - {"prefix", 'p', 0, 0, "never print `FILE: ' before info"}, - {"no-prefix", 'P', 0, 0, "always print `FILE: ' before info"}, + {"prefix", 'p', 0, 0, "always print `FILE: ' before info"}, + {"no-prefix", 'P', 0, 0, "never print `FILE: ' before info"}, {0, 0} }; static char *args_doc = "FILE..."; @@ -178,7 +178,7 @@ main(int argc, char *argv[]) if (print_prefix < 0) /* By default, only print a filename prefix if there are multiple files. */ - print_prefix = (state->argc != state->index + 1); + print_prefix = state->argc != state->index; if (what == 0) what = W_ALL; if (file == MACH_PORT_NULL) -- cgit v1.2.3