parameters: ()
return_statement: return args
docstring: Processes options for timem and removes known
docstring_summary: Processes options for timem and removes known
docstring_tokens: Processes options for timem and removes known
function: def handle_arguments():
      """
      Processes options for timem and removes known
      """
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--enable-json-handler",
          required=False,
          action="store_true",
          dest="enable_handler",
          help="Enable:\n\t{}\n\t{} to handle timing info".format(
              "import timemory_json_handler",
              "timemory_json_handler.receive(timemory.json())",
          ),
      )
      parser.add_argument(
          "--timem-quiet",
          required=False,
          action="store_true",
          dest="quiet",
          help="Suppress reporting to stdout",
      )
      parser.add_argument(
          "--debug",
          required=False,
          action="store_true",
          dest="debug",
          help="Enable debug output",
      )
  
      parser.set_defaults(enable_handler=False)
      parser.set_defaults(quiet=False)
      parser.set_defaults(debug=False)
  
      args, left = parser.parse_known_args()
      # replace sys.argv with unknown args only
      sys.argv = sys.argv[:1] + left
  
      return args
function_tokens: def handle_arguments ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( "--enable-json-handler" , required = False , action = "store_true" , dest = "enable_handler" , help = "Enable:\n\t{}\n\t{} to handle timing info" . format ( "import timemory_json_handler" , "timemory_json_handler.receive(timemory.json())" , ) , ) parser . add_argument ( "--timem-quiet" , required = False , action = "store_true" , dest = "quiet" , help = "Suppress reporting to stdout" , ) parser . add_argument ( "--debug" , required = False , action = "store_true" , dest = "debug" , help = "Enable debug output" , ) parser . set_defaults ( enable_handler = False ) parser . set_defaults ( quiet = False ) parser . set_defaults ( debug = False ) args , left = parser . parse_known_args ( ) # replace sys.argv with unknown args only sys . argv = sys . argv [ : 1 ] + left return args