Class: Cask::Cmd::NullCommand

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

Instance Method Summary collapse

Instance Method Details

#helpObject



247
248
249
# File 'brew/Library/Homebrew/cask/cmd.rb', line 247

def help
  run
end

#run(*args) ⇒ Object



236
237
238
239
240
241
242
243
244
245
# File 'brew/Library/Homebrew/cask/cmd.rb', line 236

def run(*args)
  if args.empty?
    ofail "No subcommand given.\n"
  else
    ofail "Unknown subcommand: #{args.first}"
  end

  $stderr.puts
  $stderr.puts Help.usage
end