<%= $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 -%>