lib/dexter/client.rb in pgdexter-0.3.5 vs lib/dexter/client.rb in pgdexter-0.3.6
- old
+ new
@@ -2,9 +2,15 @@
class Client
include Logging
attr_reader :arguments, :options
+ def self.start
+ Dexter::Client.new(ARGV).perform
+ rescue Dexter::Abort => e
+ abort e.message
+ end
+
def initialize(args)
@arguments, @options = parse_args(args)
end
def perform