bin/enjoy_markov in enjoy_markov-0.0.2 vs bin/enjoy_markov in enjoy_markov-0.1.0
- old
+ new
@@ -1,5 +1,10 @@
#!/usr/bin/env ruby
require 'enjoy_markov'
-EnjoyMarkov.start!
+range, speed = 20, 0.05
+
+speed = ARGV[ARGV.index('-s') + 1].to_f if ARGV.include?('-s')
+range = ARGV[ARGV.index('-r') + 1].to_i if ARGV.include?('-r')
+
+EnjoyMarkov.start!(range, speed)