def GetArgs():
 parser = argparse.ArgumentParser(description='Process args for retrieving all the Virtual Machines')
 parser.add_argument('-s', '--host', required=True, action='store', help='Remote host to connect to')
 parser.add_argument('-o', '--port', type=int, default=443, action='store', help='Port to connect on')
 parser.add_argument('-u', '--user', required=True, action='store', help='User name to use when connecting to host')
 parser.add_argument('-p', '--password', required=False, action='store', help='Password to use when connecting to host')
 args = parser.parse_args()
 return args

def GetArgs ( ) : parser = argparse . ArgumentParser ( description = 'Process args for retrieving all the Virtual Machines' ) parser . add_argument ( '-s' , '--host' , required = True , action = 'store' , help = 'Remote host to connect to' ) parser . add_argument ( '-o' , '--port' , type = int , default = 443 , action = 'store' , help = 'Port to connect on' ) parser . add_argument ( '-u' , '--user' , required = True , action = 'store' , help = 'User name to use when connecting to host' ) parser . add_argument ( '-p' , '--password' , required = False , action = 'store' , help = 'Password to use when connecting to host' ) args = parser . parse_args ( ) return args
supports the command-line arguments listed below .