Skip to content

Commit

Permalink
Default CLI options.
Browse files Browse the repository at this point in the history
  • Loading branch information
kentdahl committed May 7, 2024
1 parent a8e83e4 commit 5bd2817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion magicmaze/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions mm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

cli = MagicMaze::CLI.new

cli.default_option_settings = {sound: true}

options_data = cli.parse_options


Expand Down

0 comments on commit 5bd2817

Please sign in to comment.