Path: | lib/commander/help_formatters/terminal/command_help.erb |
Last Update: | Wed Feb 09 10:39:40 +0000 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 -%>