summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-01 22:08:56 -0700
committerelijah <elijah@riseup.net>2012-11-01 22:08:56 -0700
commit83e929b84f6444c6fcf6857f13e05c619a8e5c0e (patch)
tree3d4c51ce94aa01864b752f66aa733197ff6161fc /lib/leap_cli
parent60833da3e6d76e8cc2172ff58a79941de8b884dd (diff)
figured out a workaround to make --version work as expected
Diffstat (limited to 'lib/leap_cli')
-rw-r--r--lib/leap_cli/commands/pre.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/pre.rb b/lib/leap_cli/commands/pre.rb
index d80a9c2..a15a628 100644
--- a/lib/leap_cli/commands/pre.rb
+++ b/lib/leap_cli/commands/pre.rb
@@ -15,6 +15,9 @@ module LeapCli
default_value Path.root
flag [:root]
+ desc 'Display version number and exit'
+ switch :version, :negatable => false
+
pre do |global,command,options,args|
#
# set verbosity