def getParser():
    "Creates and returns the argparse parser object."
    parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, description=__description__)
    parser.add_argument('input', help='the input image')
    parser.add_argument('output', help='the output image')
    parser.add_argument('shape', type=argparseu.sequenceOfIntegersGt, help='the desired shape in colon-separated values, e.g. 255,255,32')

    parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', help='verbose output')
    parser.add_argument('-d', dest='debug', action='store_true', help='Display debug information.')
    parser.add_argument('-f', '--force', dest='force', action='store_true', help='overwrite existing files')
    return parser
def getParser ( ) : parser = argparse . ArgumentParser ( formatter_class = argparse . RawDescriptionHelpFormatter , description = __description__ ) parser . add_argument ( 'input' , help = 'the input image' ) parser . add_argument ( 'output' , help = 'the output image' ) parser . add_argument ( 'shape' , type = argparseu . sequenceOfIntegersGt , help = 'the desired shape in colon-separated values, e.g. 255,255,32' ) parser . add_argument ( '-v' , '--verbose' , dest = 'verbose' , action = 'store_true' , help = 'verbose output' ) parser . add_argument ( '-d' , dest = 'debug' , action = 'store_true' , help = 'Display debug information.' ) parser . add_argument ( '-f' , '--force' , dest = 'force' , action = 'store_true' , help = 'overwrite existing files' ) return parser
Creates and returns the argparse parser object.