Sha256: ac85208aa3d48ecd7ffea6a2266c2d6147fddc1d1c1366dd4ee468134652b260

Contents?: true

Size: 440 Bytes

Versions: 54

Compression:

Stored size: 440 Bytes

Contents

module YARD
  module CLI
    # Handles help for commands
    # @since 0.6.0
    class Help < Command
      def description; "Retrieves help for a command" end

      def run(*args)
        if args.first && cmd = CommandParser.commands[args.first.to_sym]
          cmd.run('--help')
        else
          log.puts "Command #{args.first} not found." if args.first
          CommandParser.run('--help')
        end
      end
    end
  end
end

Version data entries

54 entries across 45 versions & 8 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/cli/help.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/cli/help.rb
yard-0.9.5 lib/yard/cli/help.rb
yard-0.9.4 lib/yard/cli/help.rb
yard-0.9.3 lib/yard/cli/help.rb
yard-0.9.2 lib/yard/cli/help.rb
yard-0.9.1 lib/yard/cli/help.rb
yard-0.9.0 lib/yard/cli/help.rb
yard-0.8.7.6 lib/yard/cli/help.rb
yard-0.8.7.5 lib/yard/cli/help.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
yard-0.8.7.4 lib/yard/cli/help.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/help.rb