/usr/lib/ruby/vendor_ruby/octocatalog-diff/cli/options/display_datatype_changes.rb is in octocatalog-diff 1.5.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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
|