From b6d0d27a86cfc8aab5b2b4d5239d005f78f14029 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 17 Apr 2007 18:54:52 +0000 Subject: Adding a --version argument to puppetca git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2391 980ebf18-57e1-0310-9a29-db15c13687c0 --- bin/puppetca | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit