Module: PostageApp::CLI

Defined in:
lib/postageapp/cli.rb

Defined Under Namespace

Classes: Command, UnknownCommand

Class Method Summary collapse

Class Method Details

.parse!(command_name, *args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/postageapp/cli.rb', line 5

def self.parse!(command_name, *args)
  if (command = PostageApp::CLI::Command.defined[command_name.to_sym])
    command.parse!(*args)
  else
    raise UnknownCommand, "The command #{command_name.inspect} is not known."
  end
end