summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-11-03 12:33:01 +0100
committerSergei Golubchik <serg@mariadb.org>2017-11-09 21:43:52 +0100
commit56394a78e361bf0205a506185ee95a0ab012b621 (patch)
treed994b0131374c1871d561208d333d2233ea87bb3 /client
parentc97a7cdbd04e73fda85207b8ca8238ed1f7508c9 (diff)
downloadmariadb-git-56394a78e361bf0205a506185ee95a0ab012b621.tar.gz
MDEV-12372 mysqlbinlog --version output is the same on 10.x as on 5.5.x, and contains not only version
don't print usage() for --version
Diffstat (limited to 'client')
-rw-r--r--client/mysqlbinlog.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 804c6314ef9..232b53cf2ef 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -2483,10 +2483,11 @@ int main(int argc, char** argv)
if (!argc || opt_version)
{
- if (!argc)
- usage();
if (!opt_version)
+ {
+ usage();
retval= ERROR_STOP;
+ }
goto err;
}