diff options
author | monty@mashka.mysql.fi <> | 2003-01-28 20:56:35 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-01-28 20:56:35 +0200 |
commit | 3d289137408af20fb18a0606ee562ded1bb984d9 (patch) | |
tree | c69a35bf725afc24c5f992fbb309f51812f58598 /mysys | |
parent | 279f43a198d890689b3343ad6618b9340bdf0b64 (diff) | |
download | mariadb-git-3d289137408af20fb18a0606ee562ded1bb984d9.tar.gz |
Only write to the error log if --log-error is specified and --console is not specified
(On Windows --log-error is enabled by default)
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_getopt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 21adb9374ce..c6fe606eaaf 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -300,7 +300,8 @@ int handle_options(int *argc, char ***argv, */ *((my_bool*) optp->value)= (my_bool) (!optend || *optend == '1'); (*argc)--; - continue; /* For GET_BOOL get_one_option() shouldn't be called */ + get_one_option(optp->id, optp, argument); + continue; } argument= optend; } @@ -348,7 +349,8 @@ int handle_options(int *argc, char ***argv, if (optp->var_type == GET_BOOL && optp->arg_type == NO_ARG) { *((my_bool*) optp->value)= (my_bool) 1; - continue; /* For GET_BOOL get_one_option() shouldn't be called */ + get_one_option(optp->id, optp, argument); + continue; } else if (optp->arg_type == REQUIRED_ARG || optp->arg_type == OPT_ARG) |