bin/ripl-play in ripl-play-0.1.1 vs bin/ripl-play in ripl-play-0.2.0
- old
+ new
@@ -2,12 +2,13 @@
require 'ripl'
require 'ripl/play'
if ARGV.delete('-h') || ARGV.delete('--help')
- puts "Usage: ripl-play [-q|--quiet] [-h|--help] [FILE='ripl_play']"
+ puts "Usage: ripl-play [-q|--quiet] [-i|--install] [-h|--help] [FILE='ripl_play']"
exit
end
+Ripl.config[:play_install] = ARGV.delete('-i') || ARGV.delete('--install')
Ripl.config[:play_quiet] = ARGV.delete('-q') || ARGV.delete('--quiet')
-Ripl.config[:play] = ARGV[0].dup if ARGV[0]
+Ripl.config[:play] = ARGV.shift.dup if ARGV[0]
Ripl.start