From 83e929b84f6444c6fcf6857f13e05c619a8e5c0e Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 1 Nov 2012 22:08:56 -0700 Subject: figured out a workaround to make --version work as expected --- lib/leap_cli/commands/pre.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3