andk / cpanpm

CPAN.pm
87 stars 79 forks source link

App::Cpan::run() respects its argument list #153

Closed briandfoy closed 2 years ago

briandfoy commented 2 years ago

run() takes arguments, but it was ignoring them in favor of @ARGV. Since cpan(1) called run(@ARGV), I missed the problem. Now, assign the arguments to a localized @ARGV. This allows other applications to call App::Cpan->run() with whatever arguments it likes; that was always my intent.