class Minesweeprb::CLI
Handle the application command line parsing and the dispatch to various command objects
@api public
Constants
- Error
Error
raised by this runner
Public Instance Methods
play(*)
click to toggle source
# File lib/minesweeprb/cli.rb, line 26 def play(*) if options[:help] invoke :help, ['play'] else require_relative 'commands/play' Minesweeprb::Commands::Play.new(options).execute end end
version()
click to toggle source
# File lib/minesweeprb/cli.rb, line 17 def version require_relative 'version' puts "v#{Minesweeprb::VERSION}" end