Add support for describing the options in the C programs.

This commit is contained in:
Mike Frysinger
2007-09-25 16:21:38 +00:00
parent 17f430c0b9
commit 284286004e
12 changed files with 99 additions and 7 deletions

View File

@ -972,7 +972,7 @@ static void svc_restart (bool deps)
}
#include "_usage.h"
#define getoptstring "dDqsv" getoptstring_COMMON
#define getoptstring "dDqsv" getoptstring_COMMON
static struct option longopts[] = {
{ "debug", 0, NULL, 'd'},
{ "ifstarted", 0, NULL, 's'},
@ -982,6 +982,14 @@ static struct option longopts[] = {
longopts_COMMON
{ NULL, 0, NULL, 0}
};
static const char * const longopts_help[] = {
"",
"",
"",
"",
"",
longopts_help_COMMON
};
#include "_usage.c"
int runscript (int argc, char **argv)