• Hugo Wen's avatar
    MDEV-33574 Improve mysqlbinlog error message · 3d417476
    Hugo Wen authored
    Previously, when running mysqlbinlog without providing a binlog file, it
    would print the entire help text, which was very verbose and made it
    difficult to identify the actual issue.
    
    Now change the behavior to print a more concise error message instead:
    
        "ERROR: Please provide the log file(s). Run with '--help' for usage instructions."
    
    This makes the error output more user-friendly and easier to understand,
    especially when running the tool in scripts or automated processes.
    
    All new code of the whole pull request, including one or several files
    that are either new files or modified ones, are contributed under the
    BSD-new license. I am contributing on behalf of my employer
    Amazon Web Services, Inc.
    3d417476
mysqlbinlog.cc 102 KB