class Rouge::CLI::Debug

Public Class Methods

desc() click to toggle source
# File lib/rouge/cli.rb, line 357
def self.desc
end
doc() { |%|usage: rougify debug [<options>]|| ... } click to toggle source
# File lib/rouge/cli.rb, line 360
def self.doc
  return enum_for(:doc) unless block_given?

  yield %|usage: rougify debug [<options>]|
  yield %||
  yield %|Debug a lexer. Similar options to `rougify highlight`, but|
  yield %|defaults to the `null` formatter, and ensures the `debug`|
  yield %|option is enabled, to print debugging information to stdout.|
end
parse_opts(argv) click to toggle source
Calls superclass method Rouge::CLI::Highlight::parse_opts
# File lib/rouge/cli.rb, line 370
def self.parse_opts(argv)
  out = super(argv)
  out[:lexer_opts]['debug'] = '1'
  out[:formatter] = 'null'

  out
end