Fix ModuleManager error caused by a lack of arguments.

This commit is contained in:
Peter Powell 2013-04-10 06:06:53 +01:00
parent 65072d44f2
commit ac8a394a5c

View File

@ -262,7 +262,7 @@ sub resolve_deps {
}
}
my $action = lc shift @ARGV;
my $action = $#ARGV > 0 ? lc shift @ARGV : 'help';
if ($action eq 'install') {
for my $mod (@ARGV) {