Sha256: 7e2102f4c7a305cdfd26de2dc8cbe3faf7f12f0e1b0b24c20a451accb7b352dd

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

# When set, --catalog-only will only compile the catalog for the 'to' branch, and skip any
# diffing activity. The catalog will be printed to STDOUT or written to the output file.
# @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(:catalog_only) do
  has_weight 290

  def parse(parser, options)
    desc = 'Only compile the catalog for the "to" branch but do not diff'
    parser.on('--[no-]catalog-only', desc) do |x|
      options[:catalog_only] = 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/catalog_only.rb
octocatalog-diff-0.5.4 lib/octocatalog-diff/catalog-diff/cli/options/catalog_only.rb
octocatalog-diff-0.5.3 lib/octocatalog-diff/catalog-diff/cli/options/catalog_only.rb
octocatalog-diff-0.5.1 lib/octocatalog-diff/catalog-diff/cli/options/catalog_only.rb