Comment 2 for bug 1564444

Revision history for this message
Steve Martinelli (stevemar) wrote :

This is cliff's documented behaviour. When a single item it uses cliff's ShowOne class [1], which we use for create/show (and in this case, issue). When listing multiple items, the Lister class [2] is used.

Think of -c as a way to get either a column when listing lots of value or a field value when the command returns a single value.

Do you think the documentation / wording needs to be improved?

[1] https://github.com/openstack/cliff/blob/master/cliff/show.py
[2] https://github.com/openstack/cliff/blob/master/cliff/lister.py