diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-04 11:04:17 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-04 13:32:04 -0700 |
commit | 5a0b547f3289cb8e13b197d021322e03d05bee8e (patch) | |
tree | d73d52ff19d327025d993ec88922d857dd5c22e5 /lib/puppet/util/rdoc/code_objects.rb | |
parent | 8b37d7038c89bd830b076e838686419ff0068b56 (diff) | |
download | puppet-5a0b547f3289cb8e13b197d021322e03d05bee8e.tar.gz puppet-5a0b547f3289cb8e13b197d021322e03d05bee8e.tar.xz puppet-5a0b547f3289cb8e13b197d021322e03d05bee8e.zip |
(#6749) Fix optional vs mandatory argument handling.
optparse will treat '--foo --bar' as "foo with the argument --bar" when foo
takes a mandatory argument. We need to emulate that behaviour in our
pre-parse of the command line.
Incidentally, fix up a bug in boolean options, and improve our testing.
Reviewed-By: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions