Merge "add valid choice for alarm type help text"

This commit is contained in:
Jenkins 2016-05-10 08:05:03 +00:00 committed by Gerrit Code Review
commit 0d8aaa0325
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ class CliAlarmCreate(show.ShowOne):
parser = super(CliAlarmCreate, self).get_parser(prog_name)
parser.add_argument('-t', '--type', metavar='<TYPE>',
required=self.create,
choices=ALARM_TYPES, help='Type of alarm')
choices=ALARM_TYPES,
help='Type of alarm, should be one of: '
'%s.' % ', '.join(ALARM_TYPES))
parser.add_argument('--name', metavar='<NAME>', required=self.create,
help='Name of the alarm')
parser.add_argument('--project-id', metavar='<PROJECT_ID>',