summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/build_command.rb
diff options
context:
space:
mode:
authorGustavo Ribeiro <[email protected]>2022-12-22 15:24:58 -0300
committergit <[email protected]>2022-12-26 19:08:55 +0000
commitf5a035daf9a399b62c05fbc90beb1bb42380d1f4 (patch)
tree03135cca9df7c449a5ca7f979c56635e84dc28b3 /lib/rubygems/commands/build_command.rb
parent08f6196bdac6b53df35caa5810839d28100d073c (diff)
[rubygems/rubygems] deprecate gem build -C flag
https://github.com/rubygems/rubygems/commit/fac241d4ef
Diffstat (limited to 'lib/rubygems/commands/build_command.rb')
-rw-r--r--lib/rubygems/commands/build_command.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb
index accbd7e97d..5d6152d3b9 100644
--- a/lib/rubygems/commands/build_command.rb
+++ b/lib/rubygems/commands/build_command.rb
@@ -26,6 +26,9 @@ class Gem::Commands::BuildCommand < Gem::Command
add_option "-C PATH", "Run as if gem build was started in <PATH> instead of the current working directory." do |value, options|
options[:build_path] = value
end
+ deprecate_option "-C",
+ version: "4.0",
+ extra_msg: "-C is a global flag now. Use `gem -C PATH build GEMSPEC_FILE [options]` instead"
end
def arguments # :nodoc: