lib/usaidwat/command.rb in usaidwat-1.6.0 vs lib/usaidwat/command.rb in usaidwat-1.6.1
- old
+ new
@@ -34,9 +34,15 @@
exit code
end
protected
+ def dispatch_process(process, method, arg)
+ send(process, method, arg)
+ rescue ArgumentError => e
+ quit e.message, :usage
+ end
+
def cucumber?
ENV['USAIDWAT_ENV'] == 'cucumber'
end
def cucumber_time?