Sha256: 74095c67dfc1878cd63b501b6ae8599d0ed0e4a163edf9add80414929a008aff

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

require 'sym/app/commands/base_command'
module Sym
  module App
    module Commands
      class ShowHelp < BaseCommand

        required_options :help, ->(opts) { opts.keys.all? { |k| !opts[k] } }

        def execute
          opts_original.to_s(prefix: ' ' * 2)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sym-2.6.2 lib/sym/app/commands/show_help.rb
sym-2.6.1 lib/sym/app/commands/show_help.rb
sym-2.6.0 lib/sym/app/commands/show_help.rb
sym-2.5.3 lib/sym/app/commands/show_help.rb
sym-2.5.1 lib/sym/app/commands/show_help.rb
sym-2.5.0 lib/sym/app/commands/show_help.rb
sym-2.4.3 lib/sym/app/commands/show_help.rb