Sha256: b5eab296bed6463907602ecf0517b76aee077a4eda0573d2b605e03768a24b4d
Contents?: true
Size: 685 Bytes
Versions: 9
Compression:
Stored size: 685 Bytes
Contents
module TreasureData module Command def help(op) cmd = op.cmd_parse c = List.get_option(cmd) if c == nil $stderr.puts "'#{cmd}' is not a td command. Run '#{$prog}' to show the list." List.show_guess(cmd) exit 1 elsif c.name != cmd && c.group == cmd # group command puts List.cmd_usage(cmd) exit 1 else method, cmd_req_connectivity = List.get_method(cmd) method.call(['--help']) end end def help_all(op) cmd = op.cmd_parse TreasureData::Command::List.show_help(op.summary_indent) puts "" puts "Type '#{$prog} help COMMAND' for more information on a specific command." end end end
Version data entries
9 entries across 9 versions & 1 rubygems