diff options
author | dreamcat4 <dreamcat4@gmail.com> | 2009-12-25 10:51:33 +0000 |
---|---|---|
committer | dreamcat4 <dreamcat4@gmail.com> | 2010-01-25 20:24:39 +0000 |
commit | 3227b963c0c9396fbc7c9ffc1755969c5f554ef9 (patch) | |
tree | 078f40da1b4fec0a36d511303923b1d9a388b044 | |
parent | b1cdfb30a8c5136ad17e61c59fbd3bf811c47852 (diff) | |
download | mixlib-cli-3227b963c0c9396fbc7c9ffc1755969c5f554ef9.tar.gz |
[CHEF-828] Preserve ARGV after @opt_parser.parse!
-rw-r--r-- | lib/mixlib/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb index 8c15e08..10ba7b5 100644 --- a/lib/mixlib/cli.rb +++ b/lib/mixlib/cli.rb @@ -117,7 +117,7 @@ module Mixlib # # === Returns # argv<Array>:: Returns any un-parsed elements. - def parse_options(argv=ARGV) + def parse_options(argv=ARGV.dup) @opt_parser = OptionParser.new do |opts| # Set the banner opts.banner = banner |