Sha256: 172ece8503bb2d02c20814f05471641931b3245e3d6b2a867f113d60fa6743ab

Contents?: true

Size: 766 Bytes

Versions: 20

Compression:

Stored size: 766 Bytes

Contents

# frozen_string_literal: true

# Toggle on or off the display of data type changes when the string representation
# is the same. For example with this enabled, '42' (the string) and 42 (the integer)
# will be displayed as a difference. With this disabled, this is not displayed as a
# difference.
# @param parser [OptionParser object] The OptionParser argument
# @param options [Hash] Options hash being constructed; this is modified in this method.
OctocatalogDiff::Cli::Options::Option.newoption(:display_datatype_changes) do
  has_weight 280

  def parse(parser, options)
    desc = 'Display changes in data type even when strings match'
    parser.on('--[no-]display-datatype-changes', desc) do |x|
      options[:display_datatype_changes] = x
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
octocatalog-diff-2.3.1 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-2.3.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-2.1.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-2.0.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.6.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.5.4 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.5.3 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.5.2 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.5.1 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.5.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.4.1 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.4.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.3.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.2.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.1.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.0.4 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.0.3 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.0.2 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.0.1 lib/octocatalog-diff/cli/options/display_datatype_changes.rb
octocatalog-diff-1.0.0 lib/octocatalog-diff/cli/options/display_datatype_changes.rb