Make help message of execution pagination query more readable
Partially implements: blueprint pagination-execution-mitralclient Change-Id: I8a6520a19af90a0da4557ff071810159787170c1
This commit is contained in:
parent
ef58b731dc
commit
28025c9bf4
@ -71,32 +71,36 @@ class List(base.MistralLister):
|
|||||||
def get_parser(self, parsed_args):
|
def get_parser(self, parsed_args):
|
||||||
parser = super(List, self).get_parser(parsed_args)
|
parser = super(List, self).get_parser(parsed_args)
|
||||||
|
|
||||||
parser.add_argument('--marker',
|
parser.add_argument(
|
||||||
type=str,
|
'--marker',
|
||||||
help='Pagination marker for large data sets('
|
type=str,
|
||||||
'workflow execution id).'
|
help='The last execution uuid of the previous page, displays list '
|
||||||
'Example: mistral execution-list --marker '
|
'of executions after "marker".',
|
||||||
'workflow_execution_id ',
|
default='',
|
||||||
default='',
|
nargs='?'
|
||||||
nargs='?')
|
)
|
||||||
parser.add_argument('--limit',
|
parser.add_argument(
|
||||||
type=int,
|
'--limit',
|
||||||
help='Maximum number of resources to '
|
type=int,
|
||||||
'return in a single result.'
|
help='Maximum number of executions to return in a single result.',
|
||||||
'Example: mistral execution-list --limit 5',
|
nargs='?'
|
||||||
nargs='?')
|
)
|
||||||
parser.add_argument('--sort_keys',
|
parser.add_argument(
|
||||||
help='Columns to sort results by.'
|
'--sort_keys',
|
||||||
' Default: created_at.'
|
help='Comma-separated list of sort keys to sort results by. '
|
||||||
'Example : mistral execution-list '
|
'Default: created_at. '
|
||||||
'--sort_keys=id,Description',
|
'Example: mistral execution-list --sort_keys=id,description',
|
||||||
default='created_at', nargs='?')
|
default='created_at',
|
||||||
parser.add_argument('--sort_dirs',
|
nargs='?'
|
||||||
help='Sorting Directions (asc/desc)'
|
)
|
||||||
'Default:asc.'
|
parser.add_argument(
|
||||||
'Example : mistral execution-list '
|
'--sort_dirs',
|
||||||
'--sort_keys=id --sort_dirs=desc',
|
help='Comma-separated list of sort directions. Default: asc. '
|
||||||
default='asc', nargs='?')
|
'Example: mistral execution-list --sort_keys=id,description '
|
||||||
|
'--sort_dirs=asc,desc',
|
||||||
|
default='asc',
|
||||||
|
nargs='?'
|
||||||
|
)
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user