From: Ton Voon Date: Fri, 20 Feb 2004 01:05:02 +0000 (+0000) Subject: Corrected usage message (Matt Pounsett) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9750a7fca11a016a49136a0148250c11b812cc42;p=nagiosplug.git Corrected usage message (Matt Pounsett) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@809 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/check_swap.c b/plugins/check_swap.c index ef12e79..dfa2180 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c @@ -328,7 +328,7 @@ process_arguments (int argc, char **argv) case 'h': /* help */ print_help (); exit (STATE_OK); - case '?': /* help */ + case '?': /* error */ usage (_("Invalid argument\n")); } } @@ -407,7 +407,9 @@ print_help (void) -c, --critical=PERCENT%%\n\ Exit with CRITCAL status if less than PERCENT of swap space is free\n\ -a, --allswaps\n\ - Conduct comparisons for all swap partitions, one by one\n")); + Conduct comparisons for all swap partitions, one by one\n\ + -v, --verbose\n\ + Verbose output. Up to 3 levels\n")); printf (_("\n\ On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n\ @@ -426,8 +428,8 @@ void print_usage (void) { printf (_("Usage:\n\ - %s [-a] -w %% -c %%\n\ - %s [-a] -w -c \n\ + %s [-av] -w %% -c %%\n\ + %s [-av] -w -c \n\ %s (-h | --help) for detailed help\n\ %s (-V | --version) for version information\n"), progname, progname, progname, progname);