Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
do not rely on the global configuration at all
  • Loading branch information
kraih committed Nov 1, 2016
1 parent d9ccbf6 commit 8632e65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Mojo/Util.pm
Expand Up @@ -141,8 +141,9 @@ sub files {

sub getopt {
my $opts = ref $_[1] eq 'ARRAY' ? splice @_, 1, 1 : [];
my $save = Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case), @$opts);
GetOptionsFromArray shift, @_;
my $save = Getopt::Long::Configure(qw(default no_auto_abbrev no_ignore_case),
@$opts);
GetOptionsFromArray @_;
Getopt::Long::Configure($save);
}

Expand Down

0 comments on commit 8632e65

Please sign in to comment.