diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 16:21:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 16:21:38 +0000 |
commit | 284286004e024dd240cc08d84ebd8b6748d311c8 (patch) | |
tree | e8fcd489e28c5bb8dee70d340099c8095938b393 /src/env-update.c | |
parent | 17f430c0b911ef243599b0dc7388b166d5365539 (diff) |
Add support for describing the options in the C programs.
Diffstat (limited to 'src/env-update.c')
-rw-r--r-- | src/env-update.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/env-update.c b/src/env-update.c index fba671b4..c9739a78 100644 --- a/src/env-update.c +++ b/src/env-update.c @@ -65,7 +65,7 @@ static const char *colon_separated[] = { NULL }; -static const char *space_separated[] = { +static const char *space_separated[] = { "CONFIG_PROTECT", "CONFIG_PROTECT_MASK", NULL, @@ -81,6 +81,11 @@ static struct option longopts[] = { longopts_COMMON { NULL, 0, NULL, 0} }; +static const char * const longopts_help[] = { + "Fork ldconfig into the background", + "Skip execution of ldconfig", + longopts_help_COMMON +}; #include "_usage.c" int env_update (int argc, char **argv) @@ -103,7 +108,7 @@ int env_update (int argc, char **argv) bool ldconfig = true; bool fork_ldconfig = false; int nents = 0; - + applet = argv[0]; while ((opt = getopt_long (argc, argv, getoptstring, |