Sha256: da17ed62059fdaab9316972ae6b5c09518e9fcb5c4a64997b07d24edcee206e1
Contents?: true
Size: 992 Bytes
Versions: 10
Compression:
Stored size: 992 Bytes
Contents
<%= $terminal.color "NAME", :bold %>: <%= program :name %> <%= $terminal.color "DESCRIPTION", :bold %>: <%= Commander::HelpFormatter.indent 4, program(:description) %> <%= $terminal.color "COMMANDS", :bold %>: <% for name, command in @commands.sort -%> <% unless alias? name %> <%= "%-20s %s" % [command.name, command.summary || command.description] -%> <% end -%> <% end %> <% unless @aliases.empty? %> <%= $terminal.color "ALIASES", :bold %>: <% for alias_name, args in @aliases.sort %> <%= "%-20s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] -%> <% end %> <% end %> <% unless @options.empty? -%> <%= $terminal.color "GLOBAL OPTIONS", :bold %>: <% for option in @options -%> <%= option[:switches].join ', ' %> <%= option[:description] %> <% end -%> <% end -%> <% if program :help -%> <% for title, body in program(:help) %> <%= $terminal.color title.to_s.upcase, :bold %>: <%= body %> <% end -%> <% end -%>
Version data entries
10 entries across 10 versions & 2 rubygems