From 4129a13ff8d2d4728663253e77d20e1cc083a90e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 26 Nov 2010 15:22:43 +0100 Subject: [PATCH] isl_arg_parse: print string option default Signed-off-by: Sven Verdoolaege --- isl_arg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/isl_arg.c b/isl_arg.c index 056a6d5..eb2490c 100644 --- a/isl_arg.c +++ b/isl_arg.c @@ -390,7 +390,9 @@ static void print_str_help(struct isl_arg *decl, const char *prefix) const char *a = decl->argument_name ? decl->argument_name : "string"; pos = print_arg_help(decl, prefix, 0); pos = print_argument_name(decl, a, pos); - print_help_msg(decl, pos); + pos = print_help_msg(decl, pos); + if (decl->u.str.default_value) + print_default(decl, decl->u.str.default_value, pos); printf("\n"); } -- 2.7.4