Add support for describing the options in the C programs.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user