Module: Sonice::CommandLine
- Defined in:
- lib/sonice/command_line.rb
Overview
Module CommandLine
Class Method Summary collapse
Class Method Details
.parse(argv) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/sonice/command_line.rb', line 10 def parse(argv) case argv when [] Sonice::App.run! when ["--version"] puts "so nice v#{Sonice::VERSION}" puts "https://github.com/sunny/so-nice" else puts "Usage: sonice [--version]" exit(1) end end |