summaryrefslogtreecommitdiff
path: root/heatclient/osc
diff options
context:
space:
mode:
authorThomas Herve <therve@redhat.com>2016-12-02 11:47:29 +0100
committerThomas Herve <therve@redhat.com>2016-12-02 11:47:29 +0100
commit753a7175c0d9ea539216b93f19af555c5210abc6 (patch)
treee1761f9df8854fe85caa751a7138bf311cea92c2 /heatclient/osc
parent2f4feffd7347f1f00f86e83c8b4ab0db986e4858 (diff)
downloadpython-heatclient-753a7175c0d9ea539216b93f19af555c5210abc6.tar.gz
Fix event list help
argparse doesn't like the formatting of the sort metavar in event list, so restore the previous format and explain it instead. Change-Id: I3e1881ffe3d5af281369f6513e1ef2f04d18fe57 Closes-Bug: #1646773
Diffstat (limited to 'heatclient/osc')
-rw-r--r--heatclient/osc/v1/event.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/heatclient/osc/v1/event.py b/heatclient/osc/v1/event.py
index 9cdf28a..b577e94 100644
--- a/heatclient/osc/v1/event.py
+++ b/heatclient/osc/v1/event.py
@@ -133,7 +133,7 @@ class ListEvent(command.Lister):
)
parser.add_argument(
'--sort',
- metavar='[<key>][:<direction>]',
+ metavar='<key>[:<direction>]',
action='append',
help=_('Sort output by selected keys and directions (asc or desc) '
'(default: asc). Specify multiple times to sort on '
@@ -141,7 +141,8 @@ class ListEvent(command.Lister):
'"event_time" (default), "resource_name", "links", '
'"logical_resource_id", "resource_status", '
'"resource_status_reason", "physical_resource_id", or '
- '"id".')
+ '"id". You can leave the key empty and specify ":desc" '
+ 'for sorting by reverse time.')
)
parser.add_argument(
'--follow',