Add 'help' to fence_virtd

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2009-11-05 13:07:06 -05:00
parent 6a4508e1da
commit e795db6313

View File

@ -14,6 +14,16 @@
#include <syslog.h> #include <syslog.h>
void
usage(void)
{
printf("Usage: fence_virtd [options]\n");
printf(" -F Do not daemonize.\n");
printf(" -f <file> Use <file> as configuration file.\n");
printf(" -d <level> Set debugging level to <level>.\n");
}
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
@ -44,6 +54,10 @@ main(int argc, char **argv)
case 'd': case 'd':
debug_set = atoi(optarg); debug_set = atoi(optarg);
break; break;
case 'h':
case '?':
usage();
return 0;
default: default:
return -1; return -1;
} }