lib/joi/cli.rb in joi-0.0.1 vs lib/joi/cli.rb in joi-0.0.2
- old
+ new
@@ -34,14 +34,15 @@
exit
end
parser.parse!(argv)
- runner = Runner.new
+ runner = Runner.new(options: options)
- trap("SIGINT") { exit! }
+ trap("INT") { runner.run_all }
+ trap("QUIT") { exit! }
- runner.start(options: options)
+ runner.start
end
end
end
end