Skip to content
Browse files

Add sonia --version command

  • Loading branch information...
1 parent 89964fc commit 0cca720c1bcfbff16f51c51e3d46129126ffce1a @pusewicz pusewicz committed May 11, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/sonia/cli.rb
View
7 lib/sonia/cli.rb
@@ -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.
Something went wrong with that request. Please try again.