Sha256: 86008a7f98b70b5c49605507c65f29085eeb8ec9a1409e9b70d73579204a7609

Contents?: true

Size: 634 Bytes

Versions: 22

Compression:

Stored size: 634 Bytes

Contents

require File.join(File.dirname(__FILE__), 'options')

module HammerCLI::Apipie

  class OptionDefinition < HammerCLI::Options::OptionDefinition

    attr_accessor :referenced_resource

    def initialize(switches, type, description, options = {})
      if options.has_key? :referenced_resource
        self.referenced_resource = options.delete(:referenced_resource).to_s if options[:referenced_resource]
      end
      super
      # Apipie currently sends descriptions as escaped HTML once this is changed this should be removed.
      # See #15198 on Redmine.
      @description = CGI::unescapeHTML(description)
    end

  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hammer_cli-2.0.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.19.2 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.19.1 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.18.1 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.19.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.18.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.17.1 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.17.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.16.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.15.1 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.15.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.14.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.13.1 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.13.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.12.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.11.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.10.2 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.10.1 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.10.0 lib/hammer_cli/apipie/option_definition.rb
hammer_cli-0.9.0 lib/hammer_cli/apipie/option_definition.rb