Sha256: d02f6c69a3ccb45a8b96dbded039f4e7e4e5ae5ad8375457a4b4da0973e34653

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

module PostageApp::CLI
  class UnknownCommand < StandardError
  end

  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
end

require_relative './cli/command'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
postageapp-1.4.2 lib/postageapp/cli.rb
postageapp-1.4.1 lib/postageapp/cli.rb
postageapp-1.4.0 lib/postageapp/cli.rb