aboutsummaryrefslogtreecommitdiff
path: root/src/rc-status.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-25 16:21:38 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-25 16:21:38 +0000
commit284286004e024dd240cc08d84ebd8b6748d311c8 (patch)
treee8fcd489e28c5bb8dee70d340099c8095938b393 /src/rc-status.c
parent17f430c0b911ef243599b0dc7388b166d5365539 (diff)
Add support for describing the options in the C programs.
Diffstat (limited to 'src/rc-status.c')
-rw-r--r--src/rc-status.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rc-status.c b/src/rc-status.c
index cd4a24f8..9ebd56c8 100644
--- a/src/rc-status.c
+++ b/src/rc-status.c
@@ -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)