Sha256: 8baf040fd56f20b4af7bac663353726f78e50c4b836f5c41d8115742955b6482
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
<%= $terminal.color "NAME", :bold %>: <%= program :name %> <%= $terminal.color "DESCRIPTION", :bold %>: <%= SimpleCommander::HelpFormatter.indent 4, program(:description) %> <%= $terminal.color "COMMANDS", :bold %>: <% for name, command in @commands.sort -%> <% unless alias? name %> <%= "%-#{max_command_length}s %s" % [command.name, command.summary || command.description] -%> <% end -%> <% end %> <% unless @aliases.empty? %> <%= $terminal.color "ALIASES", :bold %>: <% for alias_name, args in @aliases.sort %> <%= "%-#{max_aliases_length}s %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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_commander-0.3.1 | lib/simple_commander/help_formatters/terminal/help.erb |
simple_commander-0.3.0 | lib/simple_commander/help_formatters/terminal/help.erb |