Add receiver type instruction

Users can't know which type can be used.
Add "Receiver type can be "webhook" or "message". Default to "webhook"."

Change-Id: If4ec21f2775d7bbaa52f6c3a7a3e4412492a7776
This commit is contained in:
jonnary
2016-10-24 16:22:16 +08:00
committed by XueFeng Liu
parent 4efc7a2ec2
commit b93c882d82
2 changed files with 4 additions and 2 deletions

View File

@@ -157,7 +157,8 @@ class CreateReceiver(command.ShowOne):
'--type',
metavar='<type>',
default='webhook',
help=_('Type of the receiver to create')
help=_('Type of the receiver to create. Receiver type can be '
'"webhook" or "message". Default to "webhook".')
)
parser.add_argument(
'--params',

View File

@@ -1359,7 +1359,8 @@ def do_receiver_show(service, args):
@utils.arg('-t', '--type', metavar='<TYPE>', default='webhook',
help=_('Type of the receiver to create.'))
help=_('Type of the receiver to create. Receiver type can be '
'"webhook" or "message". Default to "webhook".'))
@utils.arg('-c', '--cluster', metavar='<CLUSTER>',
help=_('Targeted cluster for this receiver. Required if receiver '
'type is webhook.'))