Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 take a different code path. So, only document `-a`/`--all`. 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
- Loading branch information