def _main(args, prog_name):
<EOL>ui = getUI(prog_name, args)<EOL>if ui.optionIsSet("<STR_LIT:test>"):<EOL><INDENT>unittest.main(argv=[sys.argv[<NUM_LIT:0>]])<EOL><DEDENT>elif ui.optionIsSet("<STR_LIT>"):<EOL><INDENT>ui.usage()<EOL><DEDENT>else:<EOL><INDENT>verbose = ui.optionIsSet("<STR_LIT>")<EOL>regions_fn = ui.getArgument(<NUM_LIT:0>)<EOL>to_count_fn = ui.getArgument(<NUM_LIT:1>)<EOL>out_fh = sys.stdout<EOL>if ui.optionIsSet("<STR_LIT>"):<EOL><INDENT>out_fh = open(ui.getValue("<STR_LIT>"), "<STR_LIT:w>")<EOL><DEDENT>norm = ui.optionIsSet("<STR_LIT>")<EOL>anch = ANCHOR_START<EOL>if ui.optionIsSet("<STR_LIT>"):<EOL><INDENT>if ui.getValue("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>anch = ANCHOR_5PRIME<EOL><DEDENT><DEDENT>res = process_anchor_start(regions_fn, to_count_fn, anchor_to=anch,<EOL>normalize=norm, verbose=verbose)<EOL>write_output(res, out_fh, verbose=verbose)<EOL><DEDENT>
Process the command line arguments of this script and dispatch.