Sha256: 2924be556aa09b5ee02bf471d9f26caaf4b8fc297e15bb3ef67350e0644d874f

Contents?: true

Size: 886 Bytes

Versions: 42

Compression:

Stored size: 886 Bytes

Contents

require 'clamp'

if Clamp.respond_to?(:messages=)
  Clamp.messages = {
    :too_many_arguments =>       _("Too many arguments."),
    :option_required =>          _("Option '%s' is required.") % "%<option>s",
    :option_or_env_required =>   _("Option '%{opt}' (or env %{env}) is required.") % {:opt => "%<option>s", :env => "%<env>s"},
    :option_argument_error =>    _("Option '%{swt}': %{msg}.") % {:swt => "%<switch>s", :msg => "%<message>s"},
    :parameter_argument_error => _("Parameter '%{pmt}': %{msg}.") % {:pmt => "%<param>s", :msg => "%<message>s"},
    :env_argument_error =>       _("%{env}: %{msg}.") % {:env => "%<env>s", :msg => "%<message>s"},
    :unrecognised_option =>      _("Unrecognised option '%s'.") % "%<switch>s",
    :no_such_subcommand =>       _("No such sub-command '%s'.") % "%<name>s",
    :no_value_provided =>        _("No value provided.")
  }
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
hammer_cli-3.13.0 lib/hammer_cli/clamp.rb
hammer_cli-3.12.0 lib/hammer_cli/clamp.rb
hammer_cli-3.10.0 lib/hammer_cli/clamp.rb
hammer_cli-3.9.0 lib/hammer_cli/clamp.rb
hammer_cli-3.8.0 lib/hammer_cli/clamp.rb
hammer_cli-3.7.0 lib/hammer_cli/clamp.rb
hammer_cli-3.5.1 lib/hammer_cli/clamp.rb
hammer_cli-3.6.0 lib/hammer_cli/clamp.rb
hammer_cli-3.5.0 lib/hammer_cli/clamp.rb
hammer_cli-3.4.0 lib/hammer_cli/clamp.rb
hammer_cli-3.3.0 lib/hammer_cli/clamp.rb
hammer_cli-3.2.0 lib/hammer_cli/clamp.rb
hammer_cli-3.1.1 lib/hammer_cli/clamp.rb
hammer_cli-3.0.2 lib/hammer_cli/clamp.rb
hammer_cli-3.1.0 lib/hammer_cli/clamp.rb
hammer_cli-3.0.1 lib/hammer_cli/clamp.rb
hammer_cli-3.0.0 lib/hammer_cli/clamp.rb
hammer_cli-2.5.1 lib/hammer_cli/clamp.rb
hammer_cli-2.5.0 lib/hammer_cli/clamp.rb
hammer_cli-2.3.1 lib/hammer_cli/clamp.rb