code: def parseCmdline(rh):
      
  
      rh.printSysLog("Enter getHost.parseCmdline")
  
      rh.userid = ''
  
      if rh.totalParms >= 2:
          rh.subfunction = rh.request[1].upper()
  
      # Verify the subfunction is valid.
      if rh.subfunction not in subfuncHandler:
          # Subfunction is missing.
          subList = ', '.join(sorted(subfuncHandler.keys()))
          msg = msgs.msg['0011'][1] % (modId, subList)
          rh.printLn("ES", msg)
          rh.updateResults(msgs.msg['0011'][0])
  
      # Parse the rest of the command line.
      if rh.results['overallRC'] == 0:
          rh.argPos = 2               # Begin Parsing at 3rd operand
          generalUtils.parseCmdline(rh, posOpsList, keyOpsList)
  
      rh.printSysLog("Exit getHost.parseCmdLine, rc: " +
          str(rh.results['overallRC']))
      return rh.results['overallRC']
docs: Parse the request command input.
  
      Input:
         Request Handle
  
      Output:
         Request Handle updated with parsed input.
         Return code - 0: ok, non-zero: error