woom.render.filter_replicate_option

woom.render.filter_replicate_option#

woom.render.filter_replicate_option(values, opt_name, format='{opt_name}={value}')[source]#

Replicate a command line option with values

Parameters:
  • values (list) – Values to distribute

  • opt_name (str) – Option name, typically startwith with a dash ‘-’

  • format (str) – How to format the option

Return type:

str

Example

>>> filter_replicate_option(['uo', 'vo'], '--var')
'--var=uo --var=vo'