projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
748344d
)
isl_arg_parse: print string option default
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 26 Nov 2010 14:22:43 +0000
(15:22 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 26 Nov 2010 14:51:03 +0000
(15:51 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_arg.c
patch
|
blob
|
history
diff --git
a/isl_arg.c
b/isl_arg.c
index
056a6d5
..
eb2490c
100644
(file)
--- 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");
}