Skip to content

Commit

Permalink
test-dist-modules.pl: update usage(), exit on usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Jul 16, 2024
1 parent 65dbd0e commit 6a83e0d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Porting/test-dist-modules.pl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"s|separate" => \$separate,
"i|install" => \$install,
"h|help" => \&usage)
or die "Unknown options\n";
or usage("Unknown options");

$separate
and warn "-s / -separate is now the default\n";
Expand Down Expand Up @@ -301,8 +301,8 @@ sub usage {
-c | -continue
Continue processing after failures
Devel::PPPort must successfully build to continue.
-s | -separate
Install to a work path, not to perl's site_perl.
-i | -install
Install to perl's site_perl.
-h | -help
Display this message.
Expand All @@ -312,12 +312,13 @@ sub usage {
Test all of the distributions, stop on the first failure:
$^X $0 -s
$^X $0
Test the various threads distributions, continue on failure:
$^X $0 -s -c threads threads-shared Thread-Queue Thread-Semaphore
$^X $0 -c threads threads-shared Thread-Queue Thread-Semaphore
EOS
exit;
}

__DATA__
Expand Down

0 comments on commit 6a83e0d

Please sign in to comment.