lib/hotch/run.rb in hotch-0.6.0 vs lib/hotch/run.rb in hotch-0.7.0
- old
+ new
@@ -1,6 +1,8 @@
-require 'hotch'
+# frozen_string_literal: true
-hotch = Hotch.new($0, viewer: ENV['HOTCH_VIEWER'], filter: ENV['HOTCH_FILTER'])
+require "hotch"
+
+hotch = Hotch.new($PROGRAM_NAME, viewer: ENV.fetch("HOTCH_VIEWER", nil), filter: ENV.fetch("HOTCH_FILTER", nil))
hotch.start
hotch.report_at_exit