From ebb98af7308f9071da9761e17d8610c3c73c5600 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 May 2002 20:45:19 +0300 Subject: my_getopt: - some minor bugfixes - made code more readable - support for printing GET_BOOL type options in my_print_variables(), value is either TRUE or FALSE client/mysqlbinlog.cc: Changes in my_getopt my_print_variables() client/mysqlmanager-pwgen.c: Changes in my_getopt my_print_variables() client/mysqlmanagerc.c: Changes in my_getopt my_print_variables() client/mysqltest.c: Changes in my_getopt my_print_variables() myisam/myisamchk.c: Changes in my_getopt my_print_variables() mysys/my_getopt.c: Made code more readable. Fixed bug in my_print_variables(). Added printing for options whether they are enabled or not FALSE / TRUE. This also separates GET_BOOL type options from variables that can actually take values as an argument. --- myisam/myisamchk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'myisam/myisamchk.c') diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index 952e91e6c6e..0cd3e5f3139 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -292,7 +292,7 @@ static struct my_option my_long_options[] = static void print_version(void) { - printf("%s Ver 2.4 for %s at %s\n", my_progname, SYSTEM_TYPE, + printf("%s Ver 2.5 for %s at %s\n", my_progname, SYSTEM_TYPE, MACHINE_TYPE); } @@ -380,7 +380,6 @@ static void usage(void) (It may be VERY slow to do a sort the first time!)"); print_defaults("my", load_default_groups); - putchar('\n'); my_print_variables(my_long_options); } -- cgit v1.2.1