Skip to content

Commit

Permalink
Merge pull request #53 from vjanelle/optparse_version_parsing
Browse files Browse the repository at this point in the history
(#52) Avoid optparse handling of --version
  • Loading branch information
ripienaar authored Nov 4, 2019
2 parents 3a3e063 + d498bb6 commit 97b7353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mcollective/applications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.run(appname)

begin
load_application(appname)
rescue Exception # rubocop:disable Lint/RescueException
rescue Exception => e # rubocop:disable Lint/RescueException
e.backtrace.first << Util.colorize(:red, " <----")
STDERR.puts "Application '%s' failed to load:" % appname
STDERR.puts
Expand Down Expand Up @@ -98,6 +98,7 @@ def self.load_config

# avoid option parsers own internal version handling that sux
parser.on("-v", "--verbose")
parser.on("--version")

if original_extra_opts
begin
Expand Down

0 comments on commit 97b7353

Please sign in to comment.