@@ -103,7 +103,10 @@ def _process_environment_and_files(hc, args, fields):
103103@utils .arg ('-r' , '--enable-rollback' , default = False , action = "store_true" ,
104104 help = 'Enable rollback on create/update failure' )
105105@utils .arg ('-P' , '--parameters' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' ,
106- help = 'Parameter values used to create the stack.' )
106+ help = 'Parameter values used to create the stack. '
107+ 'This can be specified multiple times, or once with parameters '
108+ 'separated by semicolon.' ,
109+ action = 'append' )
107110@utils .arg ('name' , metavar = '<STACK_NAME>' ,
108111 help = 'Name of the stack to create.' )
109112def do_create (hc , args ):
@@ -125,7 +128,10 @@ def do_create(hc, args):
125128@utils .arg ('-r' , '--enable-rollback' , default = False , action = "store_true" ,
126129 help = 'Enable rollback on create/update failure' )
127130@utils .arg ('-P' , '--parameters' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' ,
128- help = 'Parameter values used to create the stack.' )
131+ help = 'Parameter values used to create the stack. '
132+ 'This can be specified multiple times, or once with parameters '
133+ 'separated by semicolon.' ,
134+ action = 'append' )
129135@utils .arg ('name' , metavar = '<STACK_NAME>' ,
130136 help = 'Name of the stack to create.' )
131137def do_stack_create (hc , args ):
@@ -221,7 +227,10 @@ def do_stack_show(hc, args):
221227@utils .arg ('-o' , '--template-object' , metavar = '<URL>' ,
222228 help = 'URL to retrieve template object (e.g from swift)' )
223229@utils .arg ('-P' , '--parameters' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' ,
224- help = 'Parameter values used to create the stack.' )
230+ help = 'Parameter values used to create the stack. '
231+ 'This can be specified multiple times, or once with parameters '
232+ 'separated by semicolon.' ,
233+ action = 'append' )
225234@utils .arg ('id' , metavar = '<NAME or ID>' ,
226235 help = 'Name or ID of stack to update.' )
227236def do_update (hc , args ):
@@ -238,7 +247,10 @@ def do_update(hc, args):
238247@utils .arg ('-o' , '--template-object' , metavar = '<URL>' ,
239248 help = 'URL to retrieve template object (e.g from swift)' )
240249@utils .arg ('-P' , '--parameters' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' ,
241- help = 'Parameter values used to create the stack.' )
250+ help = 'Parameter values used to create the stack. '
251+ 'This can be specified multiple times, or once with parameters '
252+ 'separated by semicolon.' ,
253+ action = 'append' )
242254@utils .arg ('id' , metavar = '<NAME or ID>' ,
243255 help = 'Name or ID of stack to update.' )
244256def do_stack_update (hc , args ):
@@ -297,7 +309,10 @@ def do_template_show(hc, args):
297309@utils .arg ('-o' , '--template-object' , metavar = '<URL>' ,
298310 help = 'URL to retrieve template object (e.g from swift)' )
299311@utils .arg ('-P' , '--parameters' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' ,
300- help = 'Parameter values to validate.' )
312+ help = 'Parameter values to validate. '
313+ 'This can be specified multiple times, or once with parameters '
314+ 'separated by semicolon.' ,
315+ action = 'append' )
301316def do_validate (hc , args ):
302317 '''DEPRECATED! Use template-validate instead.'''
303318 do_template_validate (hc , args )
@@ -312,7 +327,10 @@ def do_validate(hc, args):
312327@utils .arg ('-o' , '--template-object' , metavar = '<URL>' ,
313328 help = 'URL to retrieve template object (e.g from swift)' )
314329@utils .arg ('-P' , '--parameters' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' ,
315- help = 'Parameter values to validate.' )
330+ help = 'Parameter values to validate. '
331+ 'This can be specified multiple times, or once with parameters '
332+ 'separated by semicolon.' ,
333+ action = 'append' )
316334def do_template_validate (hc , args ):
317335 '''Validate a template with parameters.'''
318336 fields = {'parameters' : utils .format_parameters (args .parameters )}
0 commit comments