@@ -344,15 +344,15 @@ def gen(location, output,
344344
345345def validate_variables (ctx , param , value ):
346346 """
347- Return the variables if valid or raise a UsageError otherwise.
347+ Return the variable texts if valid or raise a UsageError otherwise.
348348 """
349349 if not value :
350350 return
351351
352352 kvals , errors = parse_key_values (value )
353353 if errors :
354354 ive = '\n ' .join (sorted (' ' + x for x in errors ))
355- msg = ('Invalid --variable option(s):\n '
355+ msg = ('Invalid --vartext option(s):\n '
356356 '{ive}' .format (** locals ()))
357357 raise click .UsageError (msg )
358358 return kvals
@@ -394,11 +394,11 @@ def validate_template(ctx, param, value):
394394 help = 'Path to an optional custom attribution template to generate the '
395395 'attribution document. If not provided the default built-in template is used.' )
396396
397- @click .option ('--variable ' ,
397+ @click .option ('--vartext ' ,
398398 multiple = True ,
399399 callback = validate_variables ,
400400 metavar = '<key>=<value>' ,
401- help = 'Add variable(s) as key=value for use in a custom attribution template.' )
401+ help = 'Add variable text as key=value for use in a custom attribution template.' )
402402
403403@click .option ('--inventory' ,
404404 metavar = 'FILE' ,
@@ -429,7 +429,7 @@ def validate_template(ctx, param, value):
429429
430430@click .help_option ('-h' , '--help' )
431431
432- def attrib (location , output , template , variable ,
432+ def attrib (location , output , template , vartext ,
433433 inventory , mapping , mapping_file ,
434434 quiet , verbose ):
435435 """
@@ -455,7 +455,7 @@ def attrib(location, output, template, variable,
455455 abouts = abouts ,
456456 output_location = output ,
457457 template_loc = template ,
458- variables = variable ,
458+ variables = vartext ,
459459 mapping_file = mapping_file ,
460460 inventory_location = inventory ,
461461 )
0 commit comments