aboutsummaryrefslogtreecommitdiff
path: root/src/rc-update.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-update.c
parent17f430c0b911ef243599b0dc7388b166d5365539 (diff)
Add support for describing the options in the C programs.
Diffstat (limited to 'src/rc-update.c')
-rw-r--r--src/rc-update.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rc-update.c b/src/rc-update.c
index 34f10b91..f5d8855f 100644
--- a/src/rc-update.c
+++ b/src/rc-update.c
@@ -113,9 +113,16 @@ static struct option longopts[] = {
longopts_COMMON
{ NULL, 0, NULL, 0}
};
+static const char * const longopts_help[] = {
+ "Add the init.d to runlevels",
+ "Delete init.d from runlevels",
+ "Show init.d's in runlevels",
+ "Be verbose!",
+ longopts_help_COMMON
+};
#include "_usage.c"
-#define DOADD (1 << 0)
+#define DOADD (1 << 0)
#define DODELETE (1 << 1)
#define DOSHOW (1 << 2)