lib/language_cards.rb in language_cards-0.3.0 vs lib/language_cards.rb in language_cards-0.3.1
- old
+ new
@@ -1,19 +1,24 @@
require 'language_cards/version'
require 'language_cards/language_cards'
require 'yaml'
require 'i18n'
+require 'slop'
require 'highline'
-require 'elixirize'
##
# TODO:
# * Implement score-keeper
# * Race against the clock
# * Weighted random for better learning
-# * Value to Value is simply keyboard practice and should be clocked
module LanguageCards
+ OPTS = Slop.parse do |args|
+ args.string '-l', '--language', 'language (default: en)', default: 'en'
+ end
+
+ CARD_LANGUAGE = OPTS[:language]
+
module ESC
CLEAR = (ERASE_SCOLLBACK = "\e[3J") + (CURSOR_HOME = "\e[H") + (ERASE_DISPLAY = "\e[2J")
end
CLI = HighLine.new