From 284286004e024dd240cc08d84ebd8b6748d311c8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 25 Sep 2007 16:21:38 +0000 Subject: Add support for describing the options in the C programs. --- src/runscript.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/runscript.c') diff --git a/src/runscript.c b/src/runscript.c index 550653ab..4bbc0dab 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -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) -- cgit v1.2.3