Code generator function, parse user arguments and load appropriate
template module. Once loaded, run its data method depending on
user requested input parameter, e.g. print_etags, print_tags or
generate template code.
Definition at line 81 of file main.py.
References utils.code_generator(), parse_args(), and utils.test_env().
83 Code generator function, parse user arguments and load appropriate 84 template module. Once loaded, run its data method depending on 85 user requested input parameter, e.g. print_etags, print_tags or 86 generate template code. 89 opts, args = optmgr.get_opt()
90 test_env(os.path.join(opts.tdir, opts.tmpl), opts.tmpl)
91 config = {
'pname': opts.pname,
'tmpl': opts.tmpl,
'author': opts.author,
93 'ftype': opts.ftype,
'tmpl_dir': opts.tdir}
95 etags = opts.ketags.split(
',')
96 config.update({
'tmpl_etags': etags})
98 config.update({
'tmpl_etags': []})
107 for name
in os.listdir(opts.tdir):