From 086eb8e23c7ce6ea1dc14ce389172d1b2c9d6e6c Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 2 Jul 2022 12:20:49 +0200 Subject: my_getopt --help for "bit" options print "Defaults to on" not only for GET_BOOL, but also for GET_BIT --- mysys/my_getopt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mysys') diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 9747ee4214e..cb0e0e61240 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -1583,7 +1583,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) { -- cgit v1.2.1