def base_argparser(argv=()):
global verbose<EOL>verbose = _not_verbose<EOL>_p = argparse.ArgumentParser(add_help=False)<EOL>_p.add_argument('<STR_LIT>', action='<STR_LIT:store_true>', help="<STR_LIT>")<EOL>_p.add_argument('<STR_LIT>', help="<STR_LIT>", metavar="<STR_LIT>")<EOL>_p.add_argument('<STR_LIT>', help="<STR_LIT>", action='<STR_LIT:store_true>')<EOL>_p.add_argument('<STR_LIT>', action='<STR_LIT:store_true>', help='<STR_LIT>')<EOL>_p.add_argument('<STR_LIT>', '<STR_LIT>', help=textwrap.dedent('''<STR_LIT>'''))<EOL>_args, argv = _p.parse_known_args(argv)<EOL>if _args.log:<EOL><INDENT>loglevels = "<STR_LIT>"<EOL>if _args.log not in loglevels:  <EOL><INDENT>error('<STR_LIT>', loglevels)<EOL><DEDENT>loglevel = getattr(logging, _args.log)<EOL><DEDENT>else:<EOL><INDENT>loglevel = None<EOL><DEDENT>logging.basicConfig(<EOL>level=loglevel,<EOL>format='<STR_LIT>'<EOL>)<EOL>if _args.version:  <EOL><INDENT>print("<STR_LIT>" + __version__)<EOL>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>return _p, _args, argv<EOL>
Initial parser that can set values for the rest of the parsing process.