summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/puppetca7
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