Sha256: 51fc08d5f6ffc05f46773264d39d7862b06ec4cbd2e73f89cb1ca03bd446b959
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
<%= if !program(:nobanner) begin require 'openflight/banner' OpenFlight::Banner.render(title: program(:application), version: program(:version)) rescue LoadError nil end end -%> <%= $terminal.color "NAME", :bold %>: <%= program :name %> <%= $terminal.color "DESCRIPTION", :bold %>: <%= Commander::HelpFormatter.indent 4, program(:description) %> <%= $terminal.color "COMMANDS", :bold %>: <% for name, command in @help_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 global_slop.options.empty? -%> <%= $terminal.color "GLOBAL OPTIONS", :bold %>: <% global_slop.options.each do |global| -%> <% tag = if [Slop::BoolOption, Slop::NullOption] nil elsif meta = option.config[:meta] meta else option.key.upcase end -%> <%= global.flags.join ', ' %> <%= tag %> <%= Commander::HelpFormatter.indent 8, global.desc %> <% 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 |
---|---|
commander-openflighthpc-2.2.0 | lib/commander/help_formatters/terminal/help.erb |
commander-openflighthpc-2.1.2 | lib/commander/help_formatters/terminal/help.erb |