This cleans up Mathieu Clabaut's fix to the html_gen definition
problems in `be html -e`.
])
def _run(self, **params):
- bugdir = self._get_bugdir()
- bugdir.load_all_bugs()
+ if params['export-template'] == True:
+ bugdir = None
+ else:
+ bugdir = self._get_bugdir()
+ bugdir.load_all_bugs()
html_gen = HTMLGen(bugdir,
template=params['template-dir'],
title=params['title'],
html_gen.write_default_template(params['export-template-dir'])
else:
html_gen.run(params['output'])
- return 0
def _long_help(self):
return """