def create_main_parser():<EOL>
parser_kw = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': UpdatingDefaultsHelpFormatter(),<EOL>'<STR_LIT:name>': '<STR_LIT>',<EOL>'<STR_LIT>': get_prog(),<EOL>}<EOL>parser = ConfigOptionParser(**parser_kw)<EOL>parser.disable_interspersed_args()<EOL>pip_pkg_dir = os.path.abspath(os.path.join(<EOL>os.path.dirname(__file__), "<STR_LIT:..>", "<STR_LIT:..>",<EOL>))<EOL>parser.version = '<STR_LIT>' % (<EOL>__version__, pip_pkg_dir, sys.version[:<NUM_LIT:3>],<EOL>)<EOL>gen_opts = cmdoptions.make_option_group(cmdoptions.general_group, parser)<EOL>parser.add_option_group(gen_opts)<EOL>parser.main = True  <EOL>command_summaries = get_summaries()<EOL>description = ['<STR_LIT>'] + ['<STR_LIT>' % (i, j) for i, j in command_summaries]<EOL>parser.description = '<STR_LIT:\n>'.join(description)<EOL>return parser<EOL>
Creates and returns the main parser for pip's CLI