summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1aa0194)
raw | patch | inline | side by side (parent: 1aa0194)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Wed, 20 Jun 2007 09:01:07 +0000 (09:01 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Wed, 20 Jun 2007 09:01:07 +0000 (09:01 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1745 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_cluster.c | patch | blob | history |
index 5d52d42daeef275ad28c3f2599c9306de20e6c10..703fff9702c9e11af75349191afaef1dcc7d9348 100644 (file)
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
{"host", no_argument, 0,'h'},
{"service", no_argument, 0,'s'},
{"verbose", no_argument, 0,'v'},
+ {"version", no_argument, 0,'V'},
{"help", no_argument, 0,'H'},
{0,0,0,0}
};
while(1){
- c=getopt_long(argc,argv,"hHsvw:c:d:l:",longopts,&option);
+ c=getopt_long(argc,argv,"hHsvVw:c:d:l:",longopts,&option);
if(c==-1 || c==EOF || c==1)
break;
verbose++;
break;
+ case 'V': /* version */
+ print_revision (progname, revision);
+ exit (STATE_OK);
+ break;
+
case 'H': /* help */
print_help();
exit(STATE_UNKNOWN);