Example #1
0
def main():
    """Parse args and load the specified tool.
    
    """
    toolsmanager = ToolsManager()
    parser = argparse.ArgumentParser(
        description='A collection of tools for interacting with MESS.DB',
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    toolsmanager.populate_parser(parser)
    args = parser.parse_args()
    tool = toolsmanager.load_tool(args.subparser_name)
    tool.execute(args)
Example #2
0
def main():
    toolsmanager = ToolsManager()
    
    parser = argparse.ArgumentParser(
	    description="A collection of tools to parse and analyze T3 data.",
	    formatter_class=argparse.ArgumentDefaultsHelpFormatter)#,
	    #add_help=False)
    
    toolsmanager.populate_parser(parser) # loads tool-specific arguments

    # run tool with args
    args = parser.parse_args()
    tool = toolsmanager.load_tool(args.subparser_name)
#    t3 = T3(args.T3)
#    exit()
    tool.load(T3(args.T3))
    tool.execute(args)