Skip to content

mxqdump: List switch -a/--all for jobs-options in usage #109

Merged
merged 1 commit into from
Sep 1, 2021

Commits on Sep 1, 2021

  1. mxqdump: List switch -a/--all for jobs-options in usage

    With `mxqdump`, currently, reading the usage, it’s not clear how to dump
    all jobs in a group without any filtering on the status, which defaults
    to *running*. The code actually check if `arg_all` is set, meaning the
    switch `-a`/`--all` is passed. So, document that in the usage.
    
    Instead of `-a`/`--all` also `--status=all` or `--status=any` would be
    possible, but also takes a different code path. As that is invisible to
    the user, mention it as an alias.
    
    Passing `--debug` shows the code paths taken:
    
        $ mxqdump --debug --jobs -g 472581 -a
        mxqdump mxqdump.c:737:main(): MySQL: Connection to database established.
        mxqdump mxqdump.c:747:main(): DEBUG: DO: print all jobs in group_id=472581
        […]
        $ mxqdump --debug --jobs -g 472581 --status=all # or any
        mxqdump mxqdump.c:737:main(): MySQL: Connection to database established.
        mxqdump mxqdump.c:754:main(): DEBUG: DO: print jobs in group_id=472581 with status='invalid(18446744073709551614)'
        […]
    
    Fixes: #74
    pmenzel committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    b1a1282 View commit details
    Browse the repository at this point in the history