Method: Jekyll::Commands::Doctor.init_with_program
- Defined in:
- lib/jekyll/commands/doctor.rb
.init_with_program(prog) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jekyll/commands/doctor.rb', line 7 def init_with_program(prog) prog.command(:doctor) do |c| c.syntax "doctor" c.description "Search site and print specific deprecation warnings" c.alias(:hyde) c.option "config", "--config CONFIG_FILE[,CONFIG_FILE2,...]", Array, "Custom configuration file" c.action do |_, | Jekyll::Commands::Doctor.process() end end end |