command_help.erb

Path: lib/commander/help_formatters/terminal/command_help.erb
Last Update: Mon Nov 08 08:23:01 +0000 2010
  <%= $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 -%>

[Validate]