Class: Tweetwine::CLI::SearchCommand
- Defined in:
- lib/tweetwine/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Command
abort_with_usage, about, inherited, #initialize, name, register, show_usage, usage
Constructor Details
This class inherits a constructor from Tweetwine::CLI::Command
Class Method Details
.parser ⇒ Object
300 301 302 303 304 305 306 307 308 309 |
# File 'lib/tweetwine/cli.rb', line 300 def self.parser @parser ||= OptionParser.new do |parser, | parser.on '-a', '--and', 'All words match (default).' do [:operator] = :and end parser.on '-o', '--or', 'Any word matches.' do [:operator] = :or end end end |