Skip to content

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

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