Sha256: 85a9c3d3d6753c90a540e31a577c8bbdc4f3e20fb05acb5c980690922c30f2b4

Contents?: true

Size: 760 Bytes

Versions: 10

Compression:

Stored size: 760 Bytes

Contents

  <%= $terminal.color "NAME", :bold %>:
  
    <%= command.full_command %> - <%= command.value_of_description %>

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

<% unless command.commands.empty? -%>
  <%= $terminal.color "SUBCOMMANDS", :bold %>:
  
<% command.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 %>
<% end -%>

<% unless command.options.empty? -%>
  <%= $terminal.color "COMMAND OPTIONS", :bold %>:
	<% for option in command.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_command.erb
rcoli-0.7.0 lib/rcoli/templates/help_command.erb
rcoli-0.6.8 lib/rcoli/templates/help_command.erb
rcoli-0.6.7 lib/rcoli/templates/help_command.erb
rcoli-0.6.6 lib/rcoli/templates/help_command.erb
rcoli-0.6.5 lib/rcoli/templates/help_command.erb
rcoli-0.6.4 lib/rcoli/templates/help_command.erb
rcoli-0.6.3 lib/rcoli/templates/help_command.erb
rcoli-0.6.2 lib/rcoli/templates/help_command.erb
rcoli-0.6.1 lib/rcoli/templates/help_command.erb