diff --git a/magicmaze/cli.rb b/magicmaze/cli.rb index 3ef73fc..87667c1 100644 --- a/magicmaze/cli.rb +++ b/magicmaze/cli.rb @@ -58,10 +58,12 @@ def show_usage USAGE end + attr_accessor :default_option_settings + def parse_options options = get_cli_options - opt_hash = { + opt_hash = self.default_option_settings || { :sound => true } diff --git a/mm.rb b/mm.rb index fd9d462..18a6222 100755 --- a/mm.rb +++ b/mm.rb @@ -29,6 +29,8 @@ cli = MagicMaze::CLI.new +cli.default_option_settings = {sound: true} + options_data = cli.parse_options