Sha256: de645fb35f8c4154e2106f1b1bfb48efa37e255f3d175a5d0cd11c8e4790acc4
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
# Color printing 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(:color) do has_weight 80 def parse(parser, options) parser.on('--[no-]color', 'Enable/disable colors in output') do |color| options[:colors] = color options[:format] = color ? :color_text : :text end end end
Version data entries
4 entries across 4 versions & 1 rubygems