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:
@@ -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',
|
||||
|
||||
@@ -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.'))
|
||||
|
||||
Reference in New Issue
Block a user