diff --git a/sm5/smartd.c b/sm5/smartd.c index 9d4c42cc9d8526ed68123078c225fb4e16390951..6131de84bdc84490057419a3c92f9a2125c37589 100644 --- a/sm5/smartd.c +++ b/sm5/smartd.c @@ -50,7 +50,7 @@ // CVS ID strings extern const char *CVSid1, *CVSid2; -const char *CVSid6="$Id: smartd.c,v 1.83 2002/12/05 05:52:07 ballen4705 Exp $" +const char *CVSid6="$Id: smartd.c,v 1.84 2002/12/05 23:10:10 pjwilliams Exp $" CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; // global variable used for control of printing, passing arguments, etc. @@ -335,12 +335,21 @@ return; /* prints help information for command syntax */ void Usage (void){ +#ifdef HAVE_GETOPT_LONG printout(LOG_INFO,"Usage: smartd [-XVh] [--debugmode] [--version] [--help]\n\n"); printout(LOG_INFO,"Command Line Options:\n"); printout(LOG_INFO," -X, --debugmode\n Start smartd in debug mode\n\n"); printout(LOG_INFO," -V, --version, --license, --copyright\n"); printout(LOG_INFO," Print License, Copyright, and version information\n\n"); printout(LOG_INFO," -h, -?, --help, --usage\n Display this help and exit\n\n"); +#else + printout(LOG_INFO,"Usage: smartd [-XVh]\n\n"); + printout(LOG_INFO,"Command Line Options:\n"); + printout(LOG_INFO," -X Start smartd in debug mode\n"); + printout(LOG_INFO," -V Print License, Copyright, and version information\n"); + printout(LOG_INFO," -h Display this help and exit\n"); + printout(LOG_INFO," -? Same as -h\n"); +#endif printout(LOG_INFO,"\n"); printout(LOG_INFO,"Optional configuration file: %s\n",CONFIGFILE); Directives(); diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 7f0517641309e473de95253c4384fd432df5555b..6bcafdeb52543846129bb7ec46ee9c89f49c90c0 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -50,7 +50,7 @@ // CVS ID strings extern const char *CVSid1, *CVSid2; -const char *CVSid6="$Id: smartd.cpp,v 1.83 2002/12/05 05:52:07 ballen4705 Exp $" +const char *CVSid6="$Id: smartd.cpp,v 1.84 2002/12/05 23:10:10 pjwilliams Exp $" CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; // global variable used for control of printing, passing arguments, etc. @@ -335,12 +335,21 @@ return; /* prints help information for command syntax */ void Usage (void){ +#ifdef HAVE_GETOPT_LONG printout(LOG_INFO,"Usage: smartd [-XVh] [--debugmode] [--version] [--help]\n\n"); printout(LOG_INFO,"Command Line Options:\n"); printout(LOG_INFO," -X, --debugmode\n Start smartd in debug mode\n\n"); printout(LOG_INFO," -V, --version, --license, --copyright\n"); printout(LOG_INFO," Print License, Copyright, and version information\n\n"); printout(LOG_INFO," -h, -?, --help, --usage\n Display this help and exit\n\n"); +#else + printout(LOG_INFO,"Usage: smartd [-XVh]\n\n"); + printout(LOG_INFO,"Command Line Options:\n"); + printout(LOG_INFO," -X Start smartd in debug mode\n"); + printout(LOG_INFO," -V Print License, Copyright, and version information\n"); + printout(LOG_INFO," -h Display this help and exit\n"); + printout(LOG_INFO," -? Same as -h\n"); +#endif printout(LOG_INFO,"\n"); printout(LOG_INFO,"Optional configuration file: %s\n",CONFIGFILE); Directives();