Description of problem: If the wallaby is run with --h (--a, --p, --u) it ends with traceback output similar to this one: # wallaby --h /usr/lib/ruby/1.8/optparse.rb:1379:in `complete': ambiguous option: --h (OptionParser::AmbiguousOption) from /usr/lib/ruby/1.8/optparse.rb:1212:in `order!' from /usr/lib/ruby/1.8/optparse.rb:1205:in `catch' from /usr/lib/ruby/1.8/optparse.rb:1205:in `order!' from /usr/lib/ruby/1.8/optparse.rb:1279:in `permute!' from /usr/lib/ruby/1.8/optparse.rb:1300:in `parse!' from /usr/lib/ruby/site_ruby/1.8/mrg/grid/config/shell.rb:144:in `main' from /usr/bin/wallaby:21 Version-Release number of selected component (if applicable): wallaby-0.12.5-10 How reproducible: 100% Steps to Reproduce: 1. run wallaby --h 2. see result 3. Actual results: ruby traceback is printed Expected results: The option is correctly parsed, no traceback printed Additional info:
There is a fix in the bz850205 branch, which will be merged into master at some point in the future.
Tested with wallaby-0.16.1-2 --h and --p works fine, but --a and --u have still similar issue. # wallaby --u /usr/lib/ruby/1.8/optparse.rb:451:in `parse': missing argument: --u (OptionParser::MissingArgument) from /usr/lib/ruby/1.8/optparse.rb:1266:in `parse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!' from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!' from /usr/lib/ruby/site_ruby/1.8/mrg/grid/config/shell.rb:144:in `main' from /usr/bin/wallaby:21 # wallaby --a /usr/lib/ruby/1.8/optparse.rb:451:in `parse': missing argument: --a (OptionParser::MissingArgument) from /usr/lib/ruby/1.8/optparse.rb:1266:in `parse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!' from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!' from /usr/lib/ruby/site_ruby/1.8/mrg/grid/config/shell.rb:144:in `main' from /usr/bin/wallaby:21 >>> assigned
Missing arguments are handled now as well.
Tested with: wallaby-utils-0.16.3-1 wallaby-0.16.3-1 Tested on: RHEL6 x86_64,i386 RHEL5 x86_64,i386 all tested options works correctly --a, --u, --h, --p >>> verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0564.html