Class: Cask::Cmd::NullCommand Private

Inherits:
Object
  • Object
show all
Defined in:
brew/Library/Homebrew/cask/cmd.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Helper class for showing help when no subcommand is given.

Class Method Summary collapse

Class Method Details

.helpObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



257
258
259
# File 'brew/Library/Homebrew/cask/cmd.rb', line 257

def self.help
  Cmd.parser.generate_help_text
end

.runObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:



253
254
255
# File 'brew/Library/Homebrew/cask/cmd.rb', line 253

def self.run(*)
  raise UsageError, "No subcommand given."
end