Get password for rar archive from user input.

  Parameters
  ----------
    skipUserInput : boolean
      Set to skip user input.

  Returns
  ----------
    string or boolean
      If no password is given then returns False otherwise returns user
      response string.

def GetRarPassword(skipUserInput):
  """
  Get password for rar archive from user input.

  Parameters
  ----------
    skipUserInput : boolean
      Set to skip user input.

  Returns
  ----------
    string or boolean
      If no password is given then returns False otherwise returns user
      response string.
  """
  goodlogging.Log.Info("EXTRACT", "RAR file needs password to extract")
  if skipUserInput is False:
    prompt = "Enter password, 'x' to skip this file or 'exit' to quit this program: "
    response = goodlogging.Log.Input("EXTRACT", prompt)
    response = util.CheckEmptyResponse(response)
  else:
    response = 'x'

  if response.lower() == 'x':
    goodlogging.Log.Info("EXTRACT", "File extraction skipped without password")
    return False
  elif response.lower() == 'exit':
    goodlogging.Log.Fatal("EXTRACT", "Program terminated by user 'exit'")
  else:
    return response