def get_parser():
    parser = argparse.ArgumentParser(description=DESCRIPTION)

    parser.add_argument('-r', dest='root', metavar="DIR", default=".", required=True,
                        help='root directory for the site (%(default)s)')

    parser.add_argument('-o', dest="output", metavar="DIR", type=str, required=False, default='',
                        help='the output directory for the generated site')

    parser.add_argument('-c', dest="context", metavar="FILE", type=str, required=False,
                        default="context.py",
                        help='the python module to load (%(default)s)')

    parser.add_argument('-p', metavar="NUMBER", type=int, dest='port', default=8080,
                        help='server port to bind to (%(default)s)')

    parser.add_argument('-s', '--no-scan', dest="no_scan", default=False, action="store_true",
                        help='turn off file scan on each request (%(default)s)')

    parser.add_argument('-n', '--no-time', dest="no_time", default=False, action="store_true",
                        help='bypass timestamp check (%(default)s)')

    parser.add_argument('-v', '--verbose', dest="verbose", default=False, action="store_true",
                        help='increase logger verbosity (%(default)s)')

    return parser
Tests StrHeaderDateToDatetime().
dataset/ETHPy150Open ialbert/pyblue/pyblue/engine.py/get_parser--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/mac/munki/handlers/__init___test.py/HandlersTest.testStrHeaderDateToDatetimeNone