Bug #32703
closedhammer user list --help has invalid --order example
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1881668
Description of problem:
hammer user list --help shows:
..
--order ORDER Sort field and order, eg. ‘id DESC’
..
There are two errors in the example:
1) quote marks cant be used in a real example:
hammer> user list --order ‘id DESC’
Error: Too many arguments.
See: ' user list --help'.
hammer>
2) Even with proper quote marks, it does not work:
hammer> user list --order "id DESC"
400 Bad Request
the field 'id' in the order statement is not valid field for search
hammer>
(since also WebUI disallows searching by ID of user).
Version-Release number of selected component (if applicable):
Satellite 6.7.2
tfm-rubygem-hammer_cli-0.19.2.1-1.el7sat.noarch
How reproducible:
100%
Steps to Reproduce:
1. hammer user list --help
Actual results:
..
--order ORDER Sort field and order, eg. ‘id DESC’
..
Expected results:
..
--order ORDER Sort field and order, eg. "login DESC"
..
Additional info: