def __init__(self, description): CmdLineTool.__init__(self, description) self.argParser.add_argument('-f', '--file', nargs='?', type = FileType('r'), default=sys.stdin, help='read input from the provided file') self.argParser.add_argument('-o', '--out', nargs='?', type= FileType('w'), default=sys.stdout, help = 'write output to provided file')
def __init__(self, description): CmdLineTool.__init__(self, description) self.argParser.add_argument('-f', '--file', nargs='?', type=FileType('r'), default=sys.stdin, help='read input from the provided file') self.argParser.add_argument('-o', '--out', nargs='?', type=FileType('w'), default=sys.stdout, help='write output to provided file')
def __init__(self, DESCRIPTION): CmdLineTool.__init__(self, DESCRIPTION)
def __init__(self, DESCRIPTION): CmdLineTool.__init__(self, DESCRIPTION) self.argParser.add_argument('project')