#NEWLINE# def main( sysargs = None ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( description = 'Calls a generator on a local package, e.g. bloom-generate debian' ) #NEWLINE# generator_cmds = list_generator_commands ( ) #NEWLINE# create_subparsers ( parser , generator_cmds ) #NEWLINE# args = parser . parse_args ( sysargs ) #NEWLINE# handle_global_arguments ( args ) #NEWLINE# sys . exit ( ( args . func ( args ) or 0 ) )