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.



332
333
334
# File 'brew/Library/Homebrew/cask/cmd.rb', line 332

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:



328
329
330
# File 'brew/Library/Homebrew/cask/cmd.rb', line 328

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