Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Command#arguments
arguments
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/command.rb, line 258
def arguments
""
end
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
For example:
Example
def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
See also
#add_parser_run_info
#begins?
#add_option
#check_deprecated_options
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0