lib/rcoli/templates/help.erb in rcoli-0.5.0 vs lib/rcoli/templates/help.erb in rcoli-0.5.1

- old
+ new

@@ -1,17 +1,21 @@ <%= $terminal.color "NAME", :bold %>: - <%= @name %> + + <%= @name %> - <%= @description %> + <%= $terminal.color "SYNOPSIS", :bold %>: + + <%=@name%> [global options] command [command options] [arguments...] + <%= $terminal.color "VERSION", :bold %>: + <%= @version %> - <%= $terminal.color "DESCRIPTION", :bold %>: - <%= @description %> - <%= $terminal.color "COMMANDS", :bold %>: - <% @commands.sort{|a,b| a.value_of_name <=> b.value_of_name}.each do |c| -%> + +<% @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 @options.empty? -%> <%= $terminal.color "GLOBAL OPTIONS", :bold %>: <% for option in @options -%> \ No newline at end of file