Skip to content

Commit

Permalink
Add sonia --version command
Browse files Browse the repository at this point in the history
  • Loading branch information
pusewicz committed May 11, 2010
1 parent 89964fc commit 0cca720
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/sonia/cli.rb
Expand Up @@ -23,5 +23,12 @@ def console
require 'sonia'
IRB.start(__FILE__)
end

desc "version", "Prints Sonia's version information"
def version
require 'sonia/version'
puts "Sonia v#{Sonia::VERSION}"
end
map %w(-v --version) => :version
end
end

0 comments on commit 0cca720

Please sign in to comment.