Sha256: 75f7bd6c6b7511d83f03ca9b7a2b3ad8defa55b0ff98defdaeaeb5627a443ca2

Contents?: true

Size: 707 Bytes

Versions: 10

Compression:

Stored size: 707 Bytes

Contents

  <%= $terminal.color "NAME", :bold %>:
  
    <%= @name %> - <%= @description %>

  <%= $terminal.color "SYNOPSIS", :bold %>:
  
    <%=@name%> [global options] command [command options] [arguments...]
    
  <%= $terminal.color "VERSION", :bold %>:
  
    <%= @version %>

  <%= $terminal.color "COMMANDS", :bold %>:
  
<% @commands.sort{|a,b| a.value_of_name.to_s <=> b.value_of_name.to_s}.each do |c| -%>
    <%= "%-20s %s" % [c.value_of_name, c.value_of_description] %>
<% end -%>

<% unless @options.empty? -%>
  <%= $terminal.color "GLOBAL OPTIONS", :bold %>:
	<% for option in @options -%>
    
    <%= option.help_keys.join ', ' %> 
        <%= option.value_of_description %>
	<% end -%>
<% end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rcoli-0.7.1 lib/rcoli/templates/help.erb
rcoli-0.7.0 lib/rcoli/templates/help.erb
rcoli-0.6.8 lib/rcoli/templates/help.erb
rcoli-0.6.7 lib/rcoli/templates/help.erb
rcoli-0.6.6 lib/rcoli/templates/help.erb
rcoli-0.6.5 lib/rcoli/templates/help.erb
rcoli-0.6.4 lib/rcoli/templates/help.erb
rcoli-0.6.3 lib/rcoli/templates/help.erb
rcoli-0.6.2 lib/rcoli/templates/help.erb
rcoli-0.6.1 lib/rcoli/templates/help.erb