Module: Sonice::CommandLine
Instance Method Summary collapse
Instance Method Details
#parse(argv) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sonice/command_line.rb', line 8 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 |