| Path: | lib/commander/help_formatters/terminal/command_help.erb |
| Last Update: | Thu Jun 30 20:38:55 -0400 2011 |
<%= $terminal.color "NAME", :bold %>:
<%= @name %>
<%= $terminal.color "DESCRIPTION", :bold %>:
<%= @description || @summary || 'No description.' -%>
<% if @syntax -%>
<%= $terminal.color "SYNOPSIS", :bold %>:
<%= @syntax -%>
<% end -%> <% unless @examples.empty? -%>
<%= $terminal.color "EXAMPLES", :bold %>:
<% for description, command in @examples -%>
# <%= description %>
<%= command %>
<% end -%>
<% end -%> <% unless @options.empty? -%>
<%= $terminal.color "OPTIONS", :bold %>:
<% for option in @options -%>
<%= option[:switches].join ', ' %>
<%= option[:description] %>
<% end -%>
<% end -%>