Fix help message of event list option 'filter'
The original description of the message is not working: <KEY1=VALUE1;KEY2=VALUE2...> The feasible way to apply multiple filters are applying the 'filter' option multipke times. Change-Id: I58fc61f06a3c16f6062f643c323efaa00ef2f799
This commit is contained in:
parent
815a8c9451
commit
a38ef12919
|
@ -36,11 +36,11 @@ class EventList(command.Lister):
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super(EventList, self).get_parser(prog_name)
|
parser = super(EventList, self).get_parser(prog_name)
|
||||||
parser.add_argument('--filter', dest='filter',
|
parser.add_argument('--filter', dest='filter',
|
||||||
metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
metavar='<KEY>=<VALUE>',
|
||||||
type=self.split_filter_param,
|
type=self.split_filter_param,
|
||||||
action='append',
|
action='append',
|
||||||
help='Filter parameters to apply on'
|
help='Filter parameters to apply on returned '
|
||||||
' returned events.')
|
'events. (can be applied multiple times)')
|
||||||
parser.add_argument("--limit", type=int, metavar="<LIMIT>",
|
parser.add_argument("--limit", type=int, metavar="<LIMIT>",
|
||||||
help="Number of events to return "
|
help="Number of events to return "
|
||||||
"(Default is server default)")
|
"(Default is server default)")
|
||||||
|
|
Loading…
Reference in New Issue