code: def main(argv=None):
      
      arguments = cli_common(__doc__, argv=argv)
      plugin = 'benchmark' if arguments['benchmark'] else None
  
      if arguments['-g']:
          template.generate_config(plugin, arguments['<FILE>'])
      else:
          with open(arguments['<FILE>']) as istr:
              context = json.load(istr)
          kwargs = dict(no_input=True, extra_context=context)
          if arguments['--output-dir']:
              kwargs.update(output_dir=arguments['--output-dir'])
          if arguments['--interactive']:
              kwargs.update(no_input=False)
          logging.info(
              'generating template in directory ' + kwargs.get('output_dir', os.getcwd())
          )
          template.generate_template(plugin, **kwargs)
docs: ben-tpl entry point