parameters: (pat)
return_statement: return [k for k in keys if re.search(pat, k, re.I)]
docstring: returns a list of keys matching `pat`
  
      if pat=="all", returns all registered options
docstring_summary: returns a list of keys matching `pat`
docstring_tokens: returns a list of keys matching pat
function: def _select_options(pat):
      """returns a list of keys matching `pat`
  
      if pat=="all", returns all registered options
      """
  
      # short-circuit for exact key
      if pat in _registered_options:
          return [pat]
  
      # else look through all of them
      keys = sorted(_registered_options.keys())
      if pat == 'all':  # reserved key
          return keys
  
      return [k for k in keys if re.search(pat, k, re.I)]
function_tokens: def _select_options ( pat ) : # short-circuit for exact key if pat in _registered_options : return [ pat ] # else look through all of them keys = sorted ( _registered_options . keys ( ) ) if pat == 'all' : # reserved key return keys return [ k for k in keys if re . search ( pat , k , re . I ) ]