Sha256: 655d33c3e0d81b38fb22ad8558a43491406c3780fb914a7d71683b9b62e8ec8c
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
module WIP module Runner class CLI::Help < Command overview 'Prints help messages' argument :command, { overview: 'Command name' } def execute(params, config) command_parser(params).help rescue InvalidCommand => e print_error(e) end def validate!(args) true end private def command_parser(params) command = params.command return CLI::Parser.new(@ui) if command.nil? Commands.locate(command).new(@ui).parser end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wip-runner-0.4.1 | lib/wip/runner/cli/help.rb |
wip-runner-0.4.0 | lib/wip/runner/cli/help.rb |