bin/oria in oria-0.0.2 vs bin/oria in oria-0.0.3

- old
+ new

@@ -1,10 +1,10 @@ #!/usr/bin/env ruby require 'optparse' -# require 'rubygems' -# require 'oria' -require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'oria')) +require 'rubygems' +require 'oria' +# require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'oria')) module OriaCommand def self.go case ARGV.shift when 'start' @@ -13,11 +13,11 @@ stop when 'restart' stop start else - puts parser #"Usage: oria start|stop|restart" + puts parser end end def self.parser OptionParser.new do |opts| @@ -26,9 +26,12 @@ opts.on('-p', '--port [NUM]', 'The port Oria should listen on.') do |port| @options[:port] = port end opts.on('-h', '--host [IP]', 'The hostname or IP Oria should listen on.') do |host| @options[:host] = port + end + opts.on('-d', '--debug', 'Log output to /tmp/oria.log') do |debug| + @options[:debug] = true end end end def self.parse_options \ No newline at end of file