Sha256: 154df865719aab1d0aff6203f8a2cbca16e3789cd50bc380d86dc238517b88f8

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

# Display source filename and line number for diffs
# @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(:display_source_file_line) do
  has_weight 200

  def parse(parser, options)
    parser.on('--[no-]display-source', 'Show source file and line for each difference') do |x|
      options[:display_source_file_line] = 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/display_source_file_line.rb
octocatalog-diff-0.5.4 lib/octocatalog-diff/catalog-diff/cli/options/display_source_file_line.rb
octocatalog-diff-0.5.3 lib/octocatalog-diff/catalog-diff/cli/options/display_source_file_line.rb
octocatalog-diff-0.5.1 lib/octocatalog-diff/catalog-diff/cli/options/display_source_file_line.rb