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

@@ -65,6 +65,13 @@ static const struct option longopts[] = {
longopts_COMMON
{NULL, 0, NULL, 0}
};
static const char * const longopts_help[] = {
"Show services from all run levels",
"Show list of run levels",
"Show service list",
"Show services not assigned to any run level",
longopts_help_COMMON
};
#include "_usage.c"
int rc_status (int argc, char **argv)