mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-08 16:26:23 -04:00
Error when no params passed, better invalid params message (652086 - Ton Voon)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@262 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
4ad2c31c4e
commit
455e7c1a52
1 changed files with 1 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ main (int argc, char **argv)
|
|||
char proc_name[MAX_INPUT_BUFFER];
|
||||
char *message = "";
|
||||
|
||||
if (!process_arguments (argc, argv)) {
|
||||
if (process_arguments (argc, argv) == ERROR) {
|
||||
printf ("%s: failure parsing arguments\n", progname);
|
||||
print_help (progname);
|
||||
return STATE_UNKNOWN;
|
||||
|
|
@ -166,7 +166,6 @@ process_arguments (int argc, char **argv)
|
|||
|
||||
switch (c) {
|
||||
case '?': /* help */
|
||||
printf ("%s: Unknown argument: %s\n\n", progname, optarg);
|
||||
print_usage (progname);
|
||||
exit (STATE_UNKNOWN);
|
||||
case 'h': /* help */
|
||||
|
|
|
|||
Loading…
Reference in a new issue