Sha256: cb0ace43b533c7443d75c3e5034166e954b4f692eec3e22e93eb57ba82abfa96
Contents?: true
Size: 512 Bytes
Versions: 19
Compression:
Stored size: 512 Bytes
Contents
# -*- encoding : utf-8 -*- class Phrase::Tool::Commands::ShowHelp < Phrase::Tool::Commands::Base def initialize(options, args) super(options, args) end def execute! show_help end private def show_help msg = "usage: phrase <command> [<args>]\n" Phrase::Tool::Commands.possible_commands.each do |command, suffix| msg << " #{extract_help(command)}\n" end print_message msg end def extract_help(command) OptionsFactory.options_for(command, {}).help end end
Version data entries
19 entries across 19 versions & 1 rubygems