Skip to content

Commit

Permalink
Options constructor clones its argument.
Browse files Browse the repository at this point in the history
So we stop modifying ARGV.
  • Loading branch information
clonezone committed Feb 28, 2012
1 parent 0cf4046 commit 92f92d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fig/options.rb
Expand Up @@ -69,6 +69,7 @@ class Fig::Options
attr_reader :exit_code

def initialize(argv)
argv = argv.clone
strip_shell_command(argv)

@options = {}
Expand Down

0 comments on commit 92f92d4

Please sign in to comment.