Sha256: 5f2b369f3c78491e947991fa8ac9fea85163c9eedf1b951397204ef96c8272df
Contents?: true
Size: 565 Bytes
Versions: 20
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true # Output file option # @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(:output_file) do has_weight 90 def parse(parser, options) parser.on('--output-file FILENAME', '-o', 'Output results into FILENAME') do |filename| path = File.absolute_path(filename) options[:output_file] = path options[:format] = :text options[:colors] = false end end end
Version data entries
20 entries across 20 versions & 1 rubygems