Module: Speculations::CLI
Instance Method Summary collapse
Instance Method Details
#run(args) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/speculations/cli.rb', line 4 def run args loop do case args.first when "-h", "--help" _usage when "-v", "--version" _version when "-d", "--debug" return _compile_and_maybe_run(args.drop(1), debug: true) else return _compile_and_maybe_run args end end end |