Exemplo n.º 1
0
def get_argparse():
	# Collect arguments with the module argparse
	parser = cmdLineUtils.getParserFile(description, EPILOG)
	parser.prog = 'rootrm'
	parser.add_argument("-i","--interactive", help=cmdLineUtils.INTERACTIVE_HELP, action="store_true")
	parser.add_argument("-r","--recursive", help=cmdLineUtils.RECURSIVE_HELP, action="store_true")
	return parser
Exemplo n.º 2
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-d", "--directory", help=DIRECTORY_HELP)
    parser.add_argument("--divide", help=DIVIDE_HELP)
    parser.add_argument("-D", "--draw", default="", help=DRAW_HELP)
    parser.add_argument("-f", "--format", help=FORMAT_HELP)
    parser.add_argument("-o", "--output", help=OUTPUT_HELP)
    parser.add_argument("-s", "--size", help=SIZE_HELP)
    parser.add_argument("-S", "--style", help=STYLE_HELP)
    parser.add_argument("-v", "--verbose", action="store_true", help=VERBOSE_HELP)

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootPrint
    return cmdLineUtils.rootPrint(
        sourceList,
        directoryOption=optDict["directory"],
        divideOption=optDict["divide"],
        drawOption=optDict["draw"],
        formatOption=optDict["format"],
        outputOption=optDict["output"],
        sizeOption=optDict["size"],
        styleOption=optDict["style"],
        verboseOption=optDict["verbose"],
    )
Exemplo n.º 3
0
def get_argparse():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(description, EPILOG)
    parser.prog = 'rootmkdir'
    parser.add_argument("-p",
                        "--parents",
                        help=PARENT_HELP,
                        action="store_true")
    return parser
Exemplo n.º 4
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-p", "--parents", help=PARENT_HELP, action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser, wildcards = False)

    # Process rootMkdir
    return cmdLineUtils.rootMkdir(sourceList, parents=optDict["parents"])
Exemplo n.º 5
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-i", "--interactive", help=cmdLineUtils.INTERACTIVE_HELP, action="store_true")
    parser.add_argument("-r", "--recursive", help=cmdLineUtils.RECURSIVE_HELP, action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootRm
    return cmdLineUtils.rootRm(sourceList, interactive=optDict["interactive"], recursive=optDict["recursive"])
Exemplo n.º 6
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-1", "--oneColumn", help=ONE_HELP, action="store_true")
    parser.add_argument("-l", "--longListing", help=LONG_PRINT_HELP, action="store_true")
    parser.add_argument("-t", "--treeListing", help=TREE_PRINT_HELP, action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootLs
    return cmdLineUtils.rootLs(sourceList, oneColumn=optDict["oneColumn"], \
                               longListing=optDict["longListing"], treeListing=optDict["treeListing"])
Exemplo n.º 7
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-p",
                        "--parents",
                        help=PARENT_HELP,
                        action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser,
                                                            wildcards=False)

    # Process rootMkdir
    return cmdLineUtils.rootMkdir(sourceList, parents=optDict["parents"])
Exemplo n.º 8
0
def get_argparse():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(description, EPILOG)
    parser.prog = 'rootprint'
    parser.add_argument("-d", "--directory", help=DIRECTORY_HELP)
    parser.add_argument("--divide", help=DIVIDE_HELP)
    parser.add_argument("-D", "--draw", default="", help=DRAW_HELP)
    parser.add_argument("-f", "--format", help=FORMAT_HELP)
    parser.add_argument("-o", "--output", help=OUTPUT_HELP)
    parser.add_argument("-s", "--size", help=SIZE_HELP)
    parser.add_argument("-S", "--style", help=STYLE_HELP)
    parser.add_argument("-v",
                        "--verbose",
                        action="store_true",
                        help=VERBOSE_HELP)
    return parser
Exemplo n.º 9
0
def get_argparse():
    parser = cmdLineUtils.getParserFile(description, EPILOG)
    parser.prog = 'rootls'

    parser.add_argument("-1",
                        "--oneColumn",
                        help=ONE_HELP,
                        action="store_true")
    parser.add_argument("-l",
                        "--longListing",
                        help=LONG_PRINT_HELP,
                        action="store_true")
    parser.add_argument("-t",
                        "--treeListing",
                        help=TREE_PRINT_HELP,
                        action="store_true")
    return parser
Exemplo n.º 10
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-i",
                        "--interactive",
                        help=cmdLineUtils.INTERACTIVE_HELP,
                        action="store_true")
    parser.add_argument("-r",
                        "--recursive",
                        help=cmdLineUtils.RECURSIVE_HELP,
                        action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootRm
    return cmdLineUtils.rootRm(sourceList, interactive=optDict["interactive"], \
                               recursive=optDict["recursive"])
Exemplo n.º 11
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-d", "--directory", help=DIRECTORY_HELP)
    parser.add_argument("--divide", help=DIVIDE_HELP)
    parser.add_argument("-D", "--draw", default="",  help=DRAW_HELP)
    parser.add_argument("-f", "--format", help=FORMAT_HELP)
    parser.add_argument("-o", "--output", help=OUTPUT_HELP)
    parser.add_argument("-s", "--size", help=SIZE_HELP)
    parser.add_argument("-S", "--style", help=STYLE_HELP)
    parser.add_argument("-v", "--verbose", action="store_true", help=VERBOSE_HELP)

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootPrint
    return cmdLineUtils.rootPrint(sourceList, directoryOption = optDict["directory"], \
                                  divideOption = optDict["divide"], drawOption = optDict["draw"], \
                                  formatOption = optDict["format"], \
                                  outputOption = optDict["output"], sizeOption = optDict["size"], \
                                  styleOption = optDict["style"], verboseOption = optDict["verbose"])