| Bug #59961 | mysqlbackup --help outputs help information to stderr | ||
|---|---|---|---|
| Submitted: | 5 Feb 2011 12:56 | Modified: | 12 Oct 2011 18:42 |
| Reporter: | Sveta Smirnova | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Enterprise Backup | Severity: | S3 (Non-critical) |
| Version: | 3.6 (single-bin) | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[1 Mar 2011 1:20]
Hema Sridharan
sveta, you can try ./mysqlbackup --help > help.log 2>&1 The above command will output the result in help.log which is readable.
[1 Mar 2011 14:16]
Sveta Smirnova
Hema, sure. But this still annoying and is not same as for other MySQL command line clients and other UNIX tools.
[1 Mar 2011 14:17]
Sveta Smirnova
And output in help.log is actually readable. Problem is I need to use 2>&1 to use mysqlbackup --help | less for seeing help
[12 Oct 2011 18:42]
Sveta Smirnova
Fixed in version 3.6.0

Description: mysqlbackup --help outputs help information to stderr. This makes impossible to redirect its output to less and read help in comfortable manner. How to repeat: $./mysqlbackup --help 2>help.log | head Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /users/ssmirnova/blade12/build/mysql-5.1-meb/etc/my.cnf ~/.my.cnf The following groups are read: mysqlbackup client The following options may be given as the first argument: --print-defaults Print the program argument list and exit. --no-defaults Don't read default options from any option file. --defaults-file=# Only read default options from the given file #. --defaults-extra-file=# Read this file after the global files are read. $cat help.log | head InnoDB Backup Utility v3.6.0 [2011/02/05] Copyright (c) 2003, 2011, Oracle and/or its affiliates. All Rights Reserved. Usage: mysqlbackup [STD-OPTIONS] [CONNECTION-OPTIONS] [SERVER-REPOSITORY-OPTIONS] [BACKUP-REPOSITORY-OPTIONS] [--compress] [--compress-level=LEVEL] [--include=REGEXP] [--with-timestamp] [--slave-info] Suggested fix: Output help information to stdout