diff options
| author | Benoit Daloze <eregontp@gmail.com> | 2026-04-11 23:42:41 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-04-11 21:43:12 +0000 |
| commit | bf008f0783f309db61b9e1d0f2fc52a207a4a5a8 (patch) | |
| tree | 5998b7c937facf1ee132daf223068d882b655c16 | |
| parent | 8ad6baa01746e8de0460f0ccdaee69953a70af17 (diff) | |
[ruby/rubygems] Clarify the name and meaning of the first argument
to `gem spec`
(https://github.com/ruby/rubygems/pull/9476)
* GEMFILE sound like Bundler Gemfile but this is unrelated.
https://github.com/ruby/rubygems/commit/3e3addb8d2
| -rw-r--r-- | lib/rubygems/commands/specification_command.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb index ec81917d2a..15e543f1a6 100644 --- a/lib/rubygems/commands/specification_command.rb +++ b/lib/rubygems/commands/specification_command.rb @@ -42,7 +42,7 @@ class Gem::Commands::SpecificationCommand < Gem::Command def arguments # :nodoc: <<-ARGS -GEMFILE name of gem to show the gemspec for +GEM_OR_FILE gem name or a .gem file to show the gemspec for FIELD name of gemspec field to show ARGS end @@ -68,7 +68,7 @@ Specific fields in the specification can be extracted in YAML format: end def usage # :nodoc: - "#{program_name} [GEMFILE] [FIELD]" + "#{program_name} [GEM_OR_FILE] [FIELD]" end def execute @@ -77,7 +77,7 @@ Specific fields in the specification can be extracted in YAML format: unless gem raise Gem::CommandLineError, - "Please specify a gem name or file on the command line" + "Please specify a gem name or a .gem file on the command line" end case v = options[:version] |
