Sha256: 60c2421588cb0f7845d96f1a12d0d1f7bc03042a55a60c8f3506444a1d295615

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

# Debugging option
# @param parser [OptionParser object] The OptionParser argument
# @param options [Hash] Options hash being constructed; this is modified in this method.
OctocatalogDiff::CatalogDiff::Cli::Options::Option.newoption(:debug) do
  has_weight 110

  def parse(parser, options)
    parser.on('--[no-]debug', '-d', 'Print debugging messages to STDERR') do |x|
      options[:debug] = x
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
octocatalog-diff-0.5.6 lib/octocatalog-diff/catalog-diff/cli/options/debug.rb
octocatalog-diff-0.5.4 lib/octocatalog-diff/catalog-diff/cli/options/debug.rb
octocatalog-diff-0.5.3 lib/octocatalog-diff/catalog-diff/cli/options/debug.rb
octocatalog-diff-0.5.1 lib/octocatalog-diff/catalog-diff/cli/options/debug.rb