password = value elif arg in ('-S', '--server'): server = value elif arg in ('-d', '--debug'): debug = True else: raise ArgMismatchException('Invalid argument' + arg) if command == 'install': print('Installing ' + component + " " + distribution) env.install_component(component, server, username, password, version, distribution, exact_version) elif command == 'uninstall': print('Uninstalling ' + component) env.uninstall_component(component, server, username, password, version, distribution, exact_version) else: raise ArgMismatchException('Command option not recognized: ' + command) except getopt.GetoptError as e: usage(None) print "Invalid Command Line: " + e.msg exit(1) except ExitCleanException: exit(1) except ArgMismatchException as a: usage(None) print 'Argument mismatch: ' + str(a) #traceback.print_tb(sys.exc_traceback) exit(2) except ObjectNotFoundException as e: