module Bio::MAF

@api public

Constants

FASTA_LINE_LEN
LOG
TYPE_PROPS

Public Class Methods

handle_logging_options(opts) click to toggle source
# File lib/bio/maf/parser.rb, line 1056
def handle_logging_options(opts)
  opts.on("--logger filename", String,
          "Log to file (default STDERR)") do |name|
    Bio::Log::CLI.logger(name)
  end
  opts.on("--trace options", String,
          "Set log level",
          "(default INFO, see bio-logger)") do |s|
    Bio::Log::CLI.trace(s)
  end
  opts.on("-q", "--quiet", "Run quietly") do
    Bio::Log::CLI.trace('error')
  end
  opts.on("-v", "--verbose", "Run verbosely") do
    Bio::Log::CLI.trace('info')
  end
  opts.on("--debug", "Run with extra debugging output") do
    Bio::Log::CLI.trace('debug')
  end
end

Private Instance Methods

handle_logging_options(opts) click to toggle source
# File lib/bio/maf/parser.rb, line 1056
def handle_logging_options(opts)
  opts.on("--logger filename", String,
          "Log to file (default STDERR)") do |name|
    Bio::Log::CLI.logger(name)
  end
  opts.on("--trace options", String,
          "Set log level",
          "(default INFO, see bio-logger)") do |s|
    Bio::Log::CLI.trace(s)
  end
  opts.on("-q", "--quiet", "Run quietly") do
    Bio::Log::CLI.trace('error')
  end
  opts.on("-v", "--verbose", "Run verbosely") do
    Bio::Log::CLI.trace('info')
  end
  opts.on("--debug", "Run with extra debugging output") do
    Bio::Log::CLI.trace('debug')
  end
end