Skip to content

Commit 6a83e0d

Browse files
committed
test-dist-modules.pl: update usage(), exit on usage
1 parent 65dbd0e commit 6a83e0d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Porting/test-dist-modules.pl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"s|separate" => \$separate,
1717
"i|install" => \$install,
1818
"h|help" => \&usage)
19-
or die "Unknown options\n";
19+
or usage("Unknown options");
2020

2121
$separate
2222
and warn "-s / -separate is now the default\n";
@@ -301,8 +301,8 @@ sub usage {
301301
-c | -continue
302302
Continue processing after failures
303303
Devel::PPPort must successfully build to continue.
304-
-s | -separate
305-
Install to a work path, not to perl's site_perl.
304+
-i | -install
305+
Install to perl's site_perl.
306306
-h | -help
307307
Display this message.
308308
@@ -312,12 +312,13 @@ sub usage {
312312
313313
Test all of the distributions, stop on the first failure:
314314
315-
$^X $0 -s
315+
$^X $0
316316
317317
Test the various threads distributions, continue on failure:
318318
319-
$^X $0 -s -c threads threads-shared Thread-Queue Thread-Semaphore
319+
$^X $0 -c threads threads-shared Thread-Queue Thread-Semaphore
320320
EOS
321+
exit;
321322
}
322323

323324
__DATA__

0 commit comments

Comments
 (0)