lib/oci8_simple/cli.rb in oci8_simple-0.9.2 vs lib/oci8_simple/cli.rb in oci8_simple-1.0.0
- old
+ new
@@ -29,19 +29,19 @@
def client
@client ||= Client.new(env)
end
def self.usage
- "Usage: #{$0} \"SQL\" [ENV]"
+ "Usage: #{$0} [-e ENV] \"SQL\""
end
def self.run_from_argv
o = parse_options(self.usage)
if(ARGV[0].nil?)
puts o
else
- puts self.new(ARGV[1]).run(ARGV[0], @options)
+ puts self.new(@options[:environment]).run(ARGV[0], @options)
end
end
end
-end
\ No newline at end of file
+end