parameters: (self, args)
docstring: Unset a query option
docstring_summary: Unset a query option
docstring_tokens: Unset a query option
function: def do_unset(self, args):
      """Unset a query option"""
      if len(args.split()) != 1:
        print('Usage: unset <option>')
        return CmdStatus.ERROR
      option = args.upper()
      # Check if it's a variable
      var_name = get_var_name(option)
      if var_name is not None:
        if self.set_variables.get(var_name):
          print('Unsetting variable %s' % var_name)
          del self.set_variables[var_name]
        else:
          print("No variable called %s is set" % var_name)
      elif self.set_query_options.get(option):
        print('Unsetting option %s' % option)
        del self.set_query_options[option]
      elif self._handle_unset_shell_options(option):
        print('Unsetting shell option %s' % option)
      else:
        print("No option called %s is set" % option)
function_tokens: def do_unset ( self , args ) : if len ( args . split ( ) ) != 1 : print ( 'Usage: unset <option>' ) return CmdStatus . ERROR option = args . upper ( ) # Check if it's a variable var_name = get_var_name ( option ) if var_name is not None : if self . set_variables . get ( var_name ) : print ( 'Unsetting variable %s' % var_name ) del self . set_variables [ var_name ] else : print ( "No variable called %s is set" % var_name ) elif self . set_query_options . get ( option ) : print ( 'Unsetting option %s' % option ) del self . set_query_options [ option ] elif self . _handle_unset_shell_options ( option ) : print ( 'Unsetting shell option %s' % option ) else : print ( "No option called %s is set" % option )