Sha256: 16082c3b30dca8f906dec89323737716f922901c5c817a954f9e78bd3dc12c3c

Contents?: true

Size: 300 Bytes

Versions: 11

Compression:

Stored size: 300 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_slop.to_s(prefix: ' ' * 2)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sym-3.0.2 lib/sym/app/commands/show_help.rb
sym-3.0.1 lib/sym/app/commands/show_help.rb
sym-3.0.0 lib/sym/app/commands/show_help.rb
sym-2.10.0 lib/sym/app/commands/show_help.rb
sym-2.8.5 lib/sym/app/commands/show_help.rb
sym-2.8.4 lib/sym/app/commands/show_help.rb
sym-2.8.2 lib/sym/app/commands/show_help.rb
sym-2.8.1 lib/sym/app/commands/show_help.rb
sym-2.8.0 lib/sym/app/commands/show_help.rb
sym-2.7.0 lib/sym/app/commands/show_help.rb
sym-2.6.3 lib/sym/app/commands/show_help.rb