free (context);
}
-static void usage_exit (const char *name)
+static void usage_exit (const char *name, int status)
{
int name_length;
"by Florian octo Forster <octo@verplant.org>\n"
"for contributions see `AUTHORS'\n",
name);
- exit (1);
+ exit (status);
}
static int read_options (int argc, char **argv)
}
case 'h':
+ usage_exit (argv[0], 0);
+ break;
default:
- usage_exit (argv[0]);
+ usage_exit (argv[0], 1);
}
}
optind = read_options (argc, argv);
if ((optind >= argc) && (opt_filename == NULL)) {
- usage_exit (argv[0]);
+ usage_exit (argv[0], 1);
}
if (geteuid () != 0)