Sha256: 7772ae4b1da1ecc1dd5c9ad64a62950fa611e0cc15ca9d2283d5a553e52331cf

Contents?: true

Size: 229 Bytes

Versions: 31

Compression:

Stored size: 229 Bytes

Contents

# frozen_string_literal: true

require "optparse"
require "versionaire"

OptionParser.accept Versionaire::Version do |value|
  Versionaire::Version value
rescue Versionaire::Error
  raise OptionParser::InvalidArgument, value
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
versionaire-14.0.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.10.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.9.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.8.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.7.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.6.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.5.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.4.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.3.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.2.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.1.0 lib/versionaire/extensions/option_parser.rb
versionaire-13.0.0 lib/versionaire/extensions/option_parser.rb
versionaire-12.1.1 lib/versionaire/extensions/option_parser.rb
versionaire-12.1.0 lib/versionaire/extensions/option_parser.rb
versionaire-12.0.1 lib/versionaire/extensions/option_parser.rb
versionaire-12.0.0 lib/versionaire/extensions/option_parser.rb
versionaire-11.0.3 lib/versionaire/extensions/option_parser.rb
versionaire-11.0.2 lib/versionaire/extensions/option_parser.rb
versionaire-11.0.1 lib/versionaire/extensions/option_parser.rb
versionaire-11.0.0 lib/versionaire/extensions/option_parser.rb