<s> """<STR_LIT>""" <EOL> import sys <EOL> from optparse import OptionParser <EOL> USAGE = "<STR_LIT>" <EOL> def main ( argv = None ) : <EOL> """<STR_LIT>""" <EOL> if argv is None : <EOL> argv = sys . argv <EOL> parser = OptionParser ( usage = USAGE ) <EOL> parser . add_option ( "<STR_LIT>" , "<STR_LIT>" , action = "<STR_LIT:store_true>" , dest = "<STR_LIT>" , <EOL> default = False , help = "<STR_LIT>" ) <EOL> ( options , args ) = parser . parse_args ( argv ) <EOL> if len ( args ) < <NUM_LIT:3> : <EOL> parser . error ( "<STR_LIT>" ) <EOL> elif len ( args ) > <NUM_LIT:3> : <EOL> parser . error ( "<STR_LIT>" ) <EOL> template_dir = args [ <NUM_LIT:1> ] <EOL> output_dir = args [ <NUM_LIT:2> ] <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> sys . exit ( main ( ) or <NUM_LIT:0> ) </s>
