diff options
-rw-r--r-- | libshouldbeinlibc/argp-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c index 230eb596..f8801681 100644 --- a/libshouldbeinlibc/argp-parse.c +++ b/libshouldbeinlibc/argp-parse.c @@ -127,9 +127,9 @@ argp_version_parser (int key, char *arg, struct argp_state *state) { case 'v': if (argp_program_version_hook) - (*argp_program_version_hook) (); + (*argp_program_version_hook) (state->out_stream, state); else if (argp_program_version) - puts (argp_program_version); + fprintf (state->out_stream, "%s\n", argp_program_version); else argp_error (state, "No version known!?"); if (! (state->flags & ARGP_NO_EXIT)) |