summaryrefslogtreecommitdiff
path: root/mysys/my_getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r--mysys/my_getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 653fe844093..9f13ca7a424 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -1632,7 +1632,8 @@ void my_print_help(const struct my_option *options)
}
}
putchar('\n');
- if ((optp->var_type & GET_TYPE_MASK) == GET_BOOL)
+ if ((optp->var_type & GET_TYPE_MASK) == GET_BOOL ||
+ (optp->var_type & GET_TYPE_MASK) == GET_BIT)
{
if (optp->def_value != 0)
{