def main(args):
<EOL>ui = getUI(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>stranded = ui.optionIsSet("<STR_LIT>")<EOL>if stranded:<EOL><INDENT>sys.stderr.write("<STR_LIT>")<EOL>sys.exit()<EOL><DEDENT>out_fh = sys.stdout<EOL>if ui.optionIsSet("<STR_LIT>"):<EOL><INDENT>out_fh = open(ui.getValue("<STR_LIT>"), "<STR_LIT:w>")<EOL><DEDENT>regions_1 = [x for x in BEDIterator(ui.getArgument(<NUM_LIT:0>), verbose=verbose)]<EOL>regions_2 = [x for x in BEDIterator(ui.getArgument(<NUM_LIT:1>), verbose=verbose)]<EOL>for r in regionsIntersection(regions_1, regions_2):<EOL><INDENT>out_fh.write(str(r) + "<STR_LIT:\n>")<EOL><DEDENT><DEDENT>
main entry point for the GenomicIntIntersection script.

:param args: the arguments for this script, as a list of string. Should
             already have had things like the script name stripped. That
             is, if there are no args provided, this should be an empty
             list.