Sha256: 74f63383682c9c43f353f697f07b2856ad0af01c9929e639f0f4c70b28f8b4f0

Contents?: true

Size: 495 Bytes

Versions: 17

Compression:

Stored size: 495 Bytes

Contents

module TreasureData
module Command

  def help(op)
    cmd = op.cmd_parse

    usage = List.cmd_usage(cmd)
    unless usage
      $stderr.puts "'#{cmd}' is not a td command. Run '#{$prog}' to show the list."
      List.show_guess(cmd)
      exit 1
    end

    puts usage
  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

17 entries across 17 versions & 1 rubygems

Version Path
td-0.10.22 lib/td/command/help.rb
td-0.10.21 lib/td/command/help.rb
td-0.10.20 lib/td/command/help.rb
td-0.10.19 lib/td/command/help.rb
td-0.10.18 lib/td/command/help.rb
td-0.10.17 lib/td/command/help.rb
td-0.10.16 lib/td/command/help.rb
td-0.10.15 lib/td/command/help.rb
td-0.10.13 lib/td/command/help.rb
td-0.10.12 lib/td/command/help.rb
td-0.10.11 lib/td/command/help.rb
td-0.10.10 lib/td/command/help.rb
td-0.10.9 lib/td/command/help.rb
td-0.10.8 lib/td/command/help.rb
td-0.10.7 lib/td/command/help.rb
td-0.10.6 lib/td/command/help.rb
td-0.10.5 lib/td/command/help.rb