Class: LitmusPaper::CLI::Admin::Command
- Inherits:
-
Object
- Object
- LitmusPaper::CLI::Admin::Command
- Defined in:
- lib/litmus_paper/cli/admin/command.rb
Class Method Summary collapse
Class Method Details
._default_options ⇒ Object
5 6 7 |
# File 'lib/litmus_paper/cli/admin/command.rb', line 5 def self. = { :litmus_config => "/etc/litmus.conf" } end |
._extend_default_parser(options, &block) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/litmus_paper/cli/admin/command.rb', line 9 def self._extend_default_parser(, &block) OptionParser.new do |opts| block.call(opts) opts.on("-c", "--config=file", String, "Litmus configuration file", "Default: /etc/litmus.conf") do |config| [:litmus_config] = config end opts.on("--help", "Show this help message.") { puts opts; exit } end end |