code: def parseBasicOptions(parser):
      
      (options, args) = parser.parse_args()
  
      setLoggingFromOptions(options)
  
      #Set up the temp dir root
      if options.tempDirRoot == "None":
          options.tempDirRoot = os.getcwd()
  
      return options, args
docs: Setups the standard things from things added by getBasicOptionParser.