From 38a0077033ebdd51f730852256352a4663b0f034 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Sat, 20 Sep 2014 18:09:44 +0200
Subject: Generate a manpage
help2man should be enough so far.
---
ponymap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'ponymap.c')
diff --git a/ponymap.c b/ponymap.c
index e4c8a98..c19a94b 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -1826,7 +1826,7 @@ parse_program_arguments (struct app_context *ctx, int argc, char **argv)
g_debug_mode = true;
break;
case 'h':
- opt_handler_usage (&oh);
+ opt_handler_usage (&oh, stdout);
exit (EXIT_SUCCESS);
case 'V':
printf (PROGRAM_NAME " " PROGRAM_VERSION "\n");
@@ -1864,7 +1864,7 @@ parse_program_arguments (struct app_context *ctx, int argc, char **argv)
exit (EXIT_SUCCESS);
default:
print_error ("wrong options");
- opt_handler_usage (&oh);
+ opt_handler_usage (&oh, stderr);
exit (EXIT_FAILURE);
}
@@ -1873,7 +1873,7 @@ parse_program_arguments (struct app_context *ctx, int argc, char **argv)
if (!argc)
{
- opt_handler_usage (&oh);
+ opt_handler_usage (&oh, stderr);
exit (EXIT_FAILURE);
}
--
cgit v1.2.3