Method: Vimdb::Runner.common_search_options

Defined in:
lib/vimdb/runner.rb

.common_search_optionsObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/vimdb/runner.rb', line 7

def self.common_search_options
  option :reload, :type => :boolean, :desc => 'reloads items'
  option :sort, :type => :string, :desc => 'sort by field'
  option :reverse_sort, :type => :boolean
  option :ignore_case, :type => :boolean
  option :regexp, :type => :boolean, :desc => 'query is a regexp'
  option :not, :type => :boolean, :desc => 'return non-matching results'
  option :all, :type => :boolean, :desc => 'search all fields'
  option :field, :type => :string, :desc => 'field to query'
  option :tab, :type => :boolean, :desc => 'print tab-delimited table'
end