Sha256: 629dcf32daa3b5d5ab4a3227bcc3f8a68ce263417c71dd73c9bbfaa552dea8f2

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

module Viiite
  class Command
    #
    # Show help about a specific command
    #
    # SYNOPSIS
    #   viiite #{command_name} COMMAND
    #
    class Help < Quickl::Command(__FILE__, __LINE__)

      # Let NoSuchCommandError be passed to higher stage
      no_react_to Quickl::NoSuchCommand

      # Command execution
      def execute(args)
        sup = Quickl.super_command(self)
        sub = (args.size != 1) ? sup : Quickl.sub_command!(sup, args.first)
        puts Quickl.help(sub)
      end

    end # class Help
  end # class Command
end # module Viiite

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
viiite-0.2.0 lib/viiite/command/help.rb