command_help.erb

Path: lib/commander/help_formatters/terminal_compact/command_help.erb
Last Update: Mon Nov 08 08:23:01 +0000 2010
  <%= @name %>

<% if @description || @summary -%>

  <%= @description || @summary %>

<% end -%> <% if @syntax -%>

  Usage: <%= @syntax %>

<% end -%> <% unless @examples.empty? -%>

  Examples:
        <% for description, command in @examples -%>

    # <%= description %>
    <%= command %>
        <% end -%>

<% end -%> <% unless @options.empty? -%>

  Options:

<% for option in @options -%>

    <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %>

<% end -%> <% end -%>

[Validate]