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. --- client/mysqlbinlog.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/mysqlbinlog.cc') diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index a213f328cb5..04162faab8f 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -125,7 +125,7 @@ static void die(const char* fmt, ...) static void print_version() { - printf("%s Ver 2.0 for %s at %s\n", my_progname, SYSTEM_TYPE, MACHINE_TYPE); + printf("%s Ver 2.1 for %s at %s\n", my_progname, SYSTEM_TYPE, MACHINE_TYPE); } @@ -141,7 +141,6 @@ Dumps a MySQL binary log in a format usable for viewing or for pipeing to\n\ the mysql command line client\n\n"); printf("Usage: %s [options] log-files\n", my_progname); my_print_help(my_long_options); - putchar('\n'); my_print_variables(my_long_options); } -- cgit v1.2.1