diff options
Diffstat (limited to 'lib/rubygems/commands/build_command.rb')
-rw-r--r-- | lib/rubygems/commands/build_command.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb index decdca06bb..eaf8573d8f 100644 --- a/lib/rubygems/commands/build_command.rb +++ b/lib/rubygems/commands/build_command.rb @@ -1,11 +1,16 @@ # frozen_string_literal: true require 'rubygems/command' require 'rubygems/package' +require 'rubygems/version_option' class Gem::Commands::BuildCommand < Gem::Command + include Gem::VersionOption + def initialize super 'build', 'Build a gem from a gemspec' + add_platform_option + add_option '--force', 'skip validation of the spec' do |value, options| options[:force] = true end |