bin/descramble in word_scramble-0.0.5 vs bin/descramble in word_scramble-0.1.0
- old
+ new
@@ -5,8 +5,11 @@
puts "Usage: ./descramble <word>"
exit
end
descrambler = WordScramble::Descrambler.new(ARGV.first)
+
+puts "no matches" if descrambler.matching_words.empty?
+
descrambler.matching_words.each do |word|
puts word
end