diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-04-17 18:54:52 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-04-17 18:54:52 +0000 |
commit | b6d0d27a86cfc8aab5b2b4d5239d005f78f14029 (patch) | |
tree | c55b1e3ca3b14e27d28a5ba33a1680981aa573ab /bin | |
parent | da4d252b3d7b8d819a671f98f97047b324106562 (diff) | |
download | puppet-b6d0d27a86cfc8aab5b2b4d5239d005f78f14029.tar.gz puppet-b6d0d27a86cfc8aab5b2b4d5239d005f78f14029.tar.xz puppet-b6d0d27a86cfc8aab5b2b4d5239d005f78f14029.zip |
Adding a --version argument to puppetca
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2391 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/puppetca | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/puppetca b/bin/puppetca index e37f48d7f..48388b9e4 100755 --- a/bin/puppetca +++ b/bin/puppetca @@ -68,6 +68,9 @@ # verbose:: # Enable verbosity. # +# version:: +# Print the puppet version number and exit. +# # = Example # # $ puppetca -l @@ -96,6 +99,7 @@ options = [ [ "--list", "-l", GetoptLong::NO_ARGUMENT ], [ "--revoke", "-r", GetoptLong::NO_ARGUMENT ], [ "--sign", "-s", GetoptLong::NO_ARGUMENT ], + [ "--version", "-V", GetoptLong::NO_ARGUMENT ], [ "--verbose", "-v", GetoptLong::NO_ARGUMENT ] ] @@ -133,6 +137,9 @@ begin mode = :revoke when "--sign" mode = :sign + when "--version" + puts "%s" % Puppet.version + exit when "--verbose" Puppet::Util::Log.level = :info else |