Permalink
Browse files

Add sonia --version command

  • Loading branch information...
1 parent 0acdd78 commit c4c148679e2e9adc4ae8a68b4351d87f4fc7f3e0 @pusewicz committed May 11, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/sonia/cli.rb
View
@@ -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 c4c1486

Please sign in to comment.