mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
my_getopt --help for "bit" options
print "Defaults to on" not only for GET_BOOL, but also for GET_BIT
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user