diff options
author | Roy Marples <roy@marples.name> | 2007-06-28 15:44:14 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-06-28 15:44:14 +0000 |
commit | 0fdc53d54db27853e87b2d85b8255ebc2d562263 (patch) | |
tree | 75a6393cca89d006ee86cd42f9a217230a0e031c /src/env-update.c | |
parent | 10c3592147d284da4b634dcaa9204ac227143590 (diff) |
Add --nocolor to more programs
Diffstat (limited to 'src/env-update.c')
-rw-r--r-- | src/env-update.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/env-update.c b/src/env-update.c index 0fc76150..463cdf45 100644 --- a/src/env-update.c +++ b/src/env-update.c @@ -61,10 +61,11 @@ static const char *space_separated[] = { static char *applet = NULL; -#define getoptstring "hL" +#include "_usage.h" +#define getoptstring "L" getoptstring_COMMON static struct option longopts[] = { - { "help", 0, NULL, 'h'}, { "no-ldconfig", 0, NULL, 'L'}, + longopts_COMMON { NULL, 0, NULL, 0} }; #include "_usage.c" @@ -98,12 +99,11 @@ int main (int argc, char **argv) case 'L': ldconfig = false; break; - case 'h': - usage (EXIT_SUCCESS); - default: - usage (EXIT_FAILURE); + + case_RC_COMMON_GETOPT } } + if (! files) eerrorx ("%s: no files in " ENVDIR " to process", applet); |