.TP
.B \-\-version
Show version and copyright information.
+.TP
+.B \-\-debug
+Print debugging output to stderr (including url(s) fetched).
.SH "CONFIGURATION VARIABLES"
The two configuration files \fI/etc/devscripts.conf\fR and
\fI~/.devscripts\fR are sourced in that order to set configuration
# Needed for --wipnity option
+open DEBUG, ">/dev/null" or die $!;
+
my $term_size_broken;
sub have_term_size {
name must be given when using this option.
--help Show this help
--version Give version information
+ --debug Print debugging output to stderr
Default settings modified by devscripts configuration files:
$modified_conf_msg
die "$progname: too many arguments! Try $progname --help for help.\n";
} else { wipnity($string); exit 0; }
}
+ if ($ARGV[0] eq '--debug') {
+ open DEBUG, ">&STDERR" or die $!;
+ shift; next;
+ }
if ($ARGV[0] eq '--help') { usage(); exit 0; }
if ($ARGV[0] eq '--version') { print $version; exit 0; }
if ($ARGV[0] =~ /^--no-?conf$/) {
die "$progname: this program requires the wget package to be installed\n";
}
+print DEBUG "Fetching $url\n";
+
open EXCUSES, "wget -q -O - $url | zcat |" or
die "$progname: wget | zcat failed: $!\n";