git clone git://github.com/wycats/merb-core.git
Show merb usage if first argument is not a switch Signed-off-by: Michael S. Klishin <michael@novemberain.com>
...123 4567 8
...12345678910 1112
0@@ -1,8 +1,12 @@0 #!/usr/bin/env ruby0 require "merb-core"0 0+if ARGV[0] && ARGV[0] =~ /^[^-]/0+ ARGV.push "-H"0+end 0+0 unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) }0 ARGV.push *%w[-a mongrel]0 end0- 0+0 Merb.start
No one has commented yet.
Add a comment:
Comments
No one has commented yet.