When user supplied --help/-h, program should output to stdout the usage,
not to stderr. It's the expected behavior, what the user asked for,
not something to log or an error.
static void help(void)
{
- fprintf(stderr,
- "Usage:\n"
+ printf("Usage:\n"
"\t%s -[aA] [options] [forced_version]\n"
"\n"
"If no arguments (except options) are given, \"depmod -a\" is assumed\n"
static void help(void)
{
- fprintf(stderr,
- "Usage:\n"
+ printf("Usage:\n"
"\t%s [options] filename [args]\n"
"Options:\n"
"\t-V, --version show version\n"
static void help(void)
{
- fprintf(stderr,
- "Usage:\n"
+ printf("Usage:\n"
"\t%s [options] filename [args]\n"
"Options:\n"
"\t-a, --author Print only 'author'\n"
static void help(void)
{
- fprintf(stderr,
- "Usage:\n"
+ printf("Usage:\n"
"\t%s [options] [-i] [-b] modulename\n"
"\t%s [options] -a [-i] [-b] modulename [modulename...]\n"
"\t%s [options] -r [-i] modulename\n"
static void help(void)
{
- fprintf(stderr,
- "Usage:\n"
+ printf("Usage:\n"
"\t%s [options] modulename ...\n"
"Options:\n"
"\t-f, --force forces a module unload and may crash your\n"