Permalink
Browse files

Merge pull request #75 from devinus/master

Add `bpm --version` (#73)
  • Loading branch information...
2 parents 5840f66 + 3386273 commit fb80300a1938c37d50395bacf3f93b9a223134d4 @wagenet wagenet committed Oct 7, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/bpm/cli/base.rb
View
@@ -7,7 +7,6 @@ module CLI
LOGIN_MESSAGE = "Please login first with `bpm login`."
class Base < Thor
-
class_option :verbose, :type => :boolean, :default => false,
:aliases => ['-V'],
:desc => 'Show additional debug information while running'
@@ -72,6 +71,14 @@ def help(*args)
end
end
+ map '-v' => 'version'
+ map '--version' => 'version'
+
+ desc "version", "Print the version number"
+ def version
+ shell.say BPM::VERSION
+ end
+
desc "owner", "Manage users for a package"
subcommand "owner", BPM::CLI::Owner

0 comments on commit fb80300

Please sign in to comment.