Class: Rpub::Commands::Main

Inherits:
Base
  • Object
show all
Defined in:
lib/rpub/commands/main.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#help, #initialize

Methods included from SubclassTracker

#each, #identifier, #inherited, #matching

Constructor Details

This class inherits a constructor from Rpub::Commands::Base

Instance Method Details

#invokeObject

Raises:



5
6
7
8
9
# File 'lib/rpub/commands/main.rb', line 5

def invoke
  options << '-h' if options.empty?
  super
  raise InvalidSubcommand, options[0] unless options.empty?
end