12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/sashimi/commands.rb', line 12
def options
OptionParser.new do |o|
o.set_summary_indent(' ')
o.banner = "Usage: #{@script_name} [OPTIONS] command"
o.define_head "Rails plugin manager."
o.separator ""
o.separator "GENERAL OPTIONS"
o.on("-v", "--verbose", "Turn on verbose output.") { |$verbose| }
o.on("-h", "--help", "Show this help message.") { puts o; exit }
o.separator ""
o.separator "COMMANDS"
o.separator " install Install plugin(s) from known URL(s)."
o.separator " uninstall Uninstall plugin(s) from local repository."
o.separator " update Update installed plugin(s)."
o.separator " list List all installed plugins."
o.separator " add Add installed plugin(s) to a Rails app."
o.separator ""
o.separator "EXAMPLES"
o.separator " Install a plugin from a subversion URL:"
o.separator " #{@script_name} install http://dev.rubyonrails.com/svn/rails/plugins/continuous_builder\n"
o.separator " Install a plugin from a git URL:"
o.separator " #{@script_name} install git://github.com/jodosha/click-to-globalize.git\n"
o.separator " Uninstall a plugin:"
o.separator " #{@script_name} uninstall continuous_builder\n"
o.separator " Update a plugin:"
o.separator " #{@script_name} update click-to-globalize\n"
o.separator " Update all installed plugins:"
o.separator " #{@script_name} update --all\n"
o.separator " Update plugin(s) already added to a Rails app:"
o.separator " #{@script_name} update --rails click-to-globalize\n"
o.separator " List all installed plugins:"
o.separator " #{@script_name} list\n"
o.separator " Add installed plugin(s) to a Rails app:"
o.separator " #{@script_name} add click-to-globalize\n"
o.separator " Add installed plugin(s) to a Rails app:"
o.separator " #{@script_name} install --rails click-to-globalize\n"
end
end
|