File: command_help.erb

package info (click to toggle)
ruby-commander 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: ruby: 1,969; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

  <%= @name %>
<% if @syntax -%>

  Usage: <%= @syntax %>
<% end -%>
<% if @description || @summary -%>

  <%= @description || @summary %>
<% end -%>
<% unless @examples.empty? -%>

  Examples:
	<% for description, command in @examples -%>

    # <%= description %>
    <%= command %>
	<% end -%>
<% end -%>
<% unless @options.empty? -%>

  Options:
<% for option in @options -%>
    <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %> 
<% end -%>
<% end -%>