Sha256: 2502f769909e04bf202864d84441e5b1dc66cce0255a9948bd510026ced1ee57

Contents?: true

Size: 750 Bytes

Versions: 13

Compression:

Stored size: 750 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 <=> b.value_of_name}.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

13 entries across 13 versions & 1 rubygems

Version Path
rcoli-0.6.0 lib/rcoli/templates/help_command.erb
rcoli-0.5.12 lib/rcoli/templates/help_command.erb
rcoli-0.5.11 lib/rcoli/templates/help_command.erb
rcoli-0.5.10 lib/rcoli/templates/help_command.erb
rcoli-0.5.9 lib/rcoli/templates/help_command.erb
rcoli-0.5.8 lib/rcoli/templates/help_command.erb
rcoli-0.5.7 lib/rcoli/templates/help_command.erb
rcoli-0.5.6 lib/rcoli/templates/help_command.erb
rcoli-0.5.5 lib/rcoli/templates/help_command.erb
rcoli-0.5.4 lib/rcoli/templates/help_command.erb
rcoli-0.5.3 lib/rcoli/templates/help_command.erb
rcoli-0.5.2 lib/rcoli/templates/help_command.erb
rcoli-0.5.1 lib/rcoli/templates/help_command.erb