diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-20 18:09:44 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-20 18:12:55 +0200 |
commit | 38a0077033ebdd51f730852256352a4663b0f034 (patch) | |
tree | 2a6a411d8ec4eec541d76dad699a581b6a75c498 /ponymap.c | |
parent | 01c2bfa5a476a5dbeb74d30c79bf8db62b6be417 (diff) | |
download | ponymap-38a0077033ebdd51f730852256352a4663b0f034.tar.gz ponymap-38a0077033ebdd51f730852256352a4663b0f034.tar.xz ponymap-38a0077033ebdd51f730852256352a4663b0f034.zip |
Generate a manpage
help2man should be enough so far.
Diffstat (limited to 'ponymap.c')
-rw-r--r-- | ponymap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |