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:
astacksu 2017-08-31 15:43:29 +08:00
parent 815a8c9451
commit a38ef12919
1 changed files with 3 additions and 3 deletions

View File

@ -36,11 +36,11 @@ class EventList(command.Lister):
def get_parser(self, prog_name):
parser = super(EventList, self).get_parser(prog_name)
parser.add_argument('--filter', dest='filter',
metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
metavar='<KEY>=<VALUE>',
type=self.split_filter_param,
action='append',
help='Filter parameters to apply on'
' returned events.')
help='Filter parameters to apply on returned '
'events. (can be applied multiple times)')
parser.add_argument("--limit", type=int, metavar="<LIMIT>",
help="Number of events to return "
"(Default is server default)")