def main(): if len(sys.argv) != 3: print ('Usage : python3 client.py hostname port') sys.exit(1) host = sys.argv[1] port = int(sys.argv[2]) try: NetworkManager.connect((host, port)) except : print('Unable to connect. Maybe the server is not up.') sys.exit() print('Welcome to InfraComDrive 2.0.1\nCaso esta seja sua primeira vez utilizando a ferramenta, digite help') ApplicationManager.createDownloadFolder() while True: ApplicationManager.printWorkingDir() cmd = input().split() ApplicationManager.processCmd(cmd)