Print OptionParser debug to STDERR.

This commit is contained in:
Daniel Nichter
2013-11-07 17:47:10 -08:00
parent 805d07deb7
commit 1732e7712a

View File

@@ -1342,12 +1342,12 @@ sub _d {
# certainly include in all tools, but otherwise there's no real reason to put
# it here.
if ( PTDEBUG ) {
print '# ', $^X, ' ', $], "\n";
print STDERR '# ', $^X, ' ', $], "\n";
if ( my $uname = `uname -a` ) {
$uname =~ s/\s+/ /g;
print "# $uname\n";
print STDERR "# $uname\n";
}
print '# Arguments: ',
print STDERR '# Arguments: ',
join(' ', map { my $a = "_[$_]_"; $a =~ s/\n/\n# /g; $a; } @ARGV), "\n";
}