Sha256: eb33e5378586676ebb63b88fee4de765d34945f7a1c3b59434134bb0ca758b2d

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

  <%= color "NAME", :bold %>:

    <%= @name %>

  <%= color "DESCRIPTION", :bold %>:

    <%= @description || @summary || 'No description.' -%>

<% if @syntax -%>

  <%= color "SYNOPSIS", :bold %>:

    <%= @syntax -%>

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

  <%= color "EXAMPLES", :bold %>:
	<% @examples.each do |example| -%>

    # <%= example[:description] %>
    <%= example[:command] %>
	<% end -%>
<% end -%>
<% unless @options.empty? -%>

  <%= color "OPTIONS", :bold %>:
	<% @options.each do |option| -%>

    <%= option[:switches].join ', ' %> 
        <%= option[:description] %>
	<% end -%>
<% end -%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
visionmedia-commander-2.4.2 lib/commander/help_formatters/terminal/command_help.erb
visionmedia-commander-2.4.3 lib/commander/help_formatters/terminal/command_help.erb
visionmedia-commander-2.4.4 lib/commander/help_formatters/terminal/command_help.erb
visionmedia-commander-2.4.6 lib/commander/help_formatters/terminal/command_help.erb
visionmedia-commander-2.5.6 lib/commander/help_formatters/terminal/command_help.erb
visionmedia-commander-2.5.7 lib/commander/help_formatters/terminal/command_help.erb