Sha256: ab044839e4560814ff1b667a1748dad7a67a1679027afbc9d716440250bf2a09

Contents?: true

Size: 726 Bytes

Versions: 25

Compression:

Stored size: 726 Bytes

Contents

  <%= program :name %>

  <%= program :description %>

  Commands:
<% for name, command in @commands.sort -%>
<% unless alias? name -%>
    <%= "%-20s %s" % [command.name, command.summary || command.description] %>
<% end -%>
<% end -%>
<% unless @aliases.empty? %>
  Aliases:
<% for alias_name, args in @aliases.sort -%>
    <%= "%-20s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] %>
<% end -%>
<% end %>
<% unless @options.empty? -%>
  Global Options:
<% for option in @options -%>
    <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] -%> 
<% end -%>
<% end -%>
<% if program :help -%>
  <% for title, body in program(:help) %>
  <%= title %>:
    <%= body %>
  <% end %>
<% end -%>

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
commander-4.3.2 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.3.1 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.3.0 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.2.1 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.2.0 lib/commander/help_formatters/terminal_compact/help.erb
clone-1.0.0.beta2 module/gems/commander-4.1.3/lib/commander/help_formatters/terminal_compact/help.erb
clone-1.0.0.beta module/gems/commander-4.1.3/lib/commander/help_formatters/terminal_compact/help.erb
commander-4.1.6 lib/commander/help_formatters/terminal_compact/help.erb
taco_it-1.5.3 lib/taco/commander/help_formatters/terminal_compact/help.erb
commander-4.1.5 lib/commander/help_formatters/terminal_compact/help.erb
taco_it-1.5.2 lib/taco/commander/help_formatters/terminal_compact/help.erb
commander-4.1.4 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.1.3 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.1.2 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.1.1 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.1.0 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.0.7 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.0.6 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.0.5 lib/commander/help_formatters/terminal_compact/help.erb
commander-4.0.4 lib/commander/help_formatters/terminal_compact/help.erb