Sha256: 5c1e3bd20a8a8a45ee35192c2b7e17db7ac64d0509a2e47c7cc257785bf62394

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

module Clio

  class NoOptionError < ::NoMethodError # ArgumentError ?
    def initialize(name, *arg)
      super("unknown option -- #{name}", name, *args)
    end
  end

  class NoCommandError < ::NoMethodError
    def initialize(name, *arg)
      super("unknown subcommand -- #{name}", name, *args)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clio-0.0.1 lib/clio/errors.rb
clio-0.2.0 lib/clio/errors.rb
clio-0.3.0 lib/clio/errors.rb