lib/rcoli/templates/help_command.erb in rcoli-0.6.0 vs lib/rcoli/templates/help_command.erb in rcoli-0.6.1
- old
+ new
@@ -7,10 +7,10 @@
<%= @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| -%>
+<% 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? -%>
\ No newline at end of file