Sha256: 13a72845168bf8785f3d9a849d9689cdf64e10cc37bba38164b4a7761a4922b5

Contents?: true

Size: 569 Bytes

Versions: 14

Compression:

Stored size: 569 Bytes

Contents

# encoding: UTF-8

module Kafo
  module HelpBuilders
    class Basic < Base
      def add_module(name, items)
        data = by_parameter_groups(except_resets(items))
        add_list(module_header(name), data['Basic'])
      end

      def string
        super + "\nOnly commonly used options have been displayed.\nUse --full-help to view the complete list."
      end

      private

      def except_resets(items)
        items.select { |i| !i.help.first.strip.start_with?('--reset-') || !i.help.last.include?('to the default value (') }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kafo-5.1.0 lib/kafo/help_builders/basic.rb
kafo-5.0.1 lib/kafo/help_builders/basic.rb
kafo-5.0.0 lib/kafo/help_builders/basic.rb
kafo-4.1.0 lib/kafo/help_builders/basic.rb
kafo-4.0.1 lib/kafo/help_builders/basic.rb
kafo-4.0.0 lib/kafo/help_builders/basic.rb
kafo-3.0.0 lib/kafo/help_builders/basic.rb
kafo-2.1.0 lib/kafo/help_builders/basic.rb
kafo-2.0.2 lib/kafo/help_builders/basic.rb
kafo-2.0.1 lib/kafo/help_builders/basic.rb
kafo-2.0.0 lib/kafo/help_builders/basic.rb
kafo-1.0.8 lib/kafo/help_builders/basic.rb
kafo-1.0.7 lib/kafo/help_builders/basic.rb
kafo-1.0.6 lib/kafo/help_builders/basic.rb