summaryrefslogtreecommitdiff
path: root/lib/App/annex_review_unused.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/annex_review_unused.pm')
-rw-r--r--lib/App/annex_review_unused.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/App/annex_review_unused.pm b/lib/App/annex_review_unused.pm
index d170601..d92b6d6 100644
--- a/lib/App/annex_review_unused.pm
+++ b/lib/App/annex_review_unused.pm
@@ -39,6 +39,9 @@ for that command.
=cut
sub main {
+ shift if $_[0] and ref $_[0] eq ""; # in case main called as a class method
+ local @ARGV = @{ $_[0] } if $_[0] and ref $_[0] ne "";
+
my $annex = Git::Annex->new;
my $just_print = 0;