From 0fdc53d54db27853e87b2d85b8255ebc2d562263 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 28 Jun 2007 15:44:14 +0000 Subject: Add --nocolor to more programs --- src/env-update.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/env-update.c') 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); -- cgit v1.2.3