diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-11-03 12:33:01 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-11-09 21:43:52 +0100 |
commit | 56394a78e361bf0205a506185ee95a0ab012b621 (patch) | |
tree | d994b0131374c1871d561208d333d2233ea87bb3 /client | |
parent | c97a7cdbd04e73fda85207b8ca8238ed1f7508c9 (diff) | |
download | mariadb-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.cc | 5 |
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; } |