X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=bin%2Firspy.pl;h=963c1b5b3d6209dfe3a4bc988168974f7646c60a;hp=4e24088bf8b8b3e3813e876abffc527f843cc43b;hb=30b2f2ff19bcbba068822bd587c54b20fa50c0be;hpb=3a4d8054ad1bcb312d538158ff207f67623c1c3e diff --git a/bin/irspy.pl b/bin/irspy.pl index 4e24088..963c1b5 100755 --- a/bin/irspy.pl +++ b/bin/irspy.pl @@ -32,9 +32,10 @@ $SIG{__DIE__} = sub { }; my %opts; -if (!getopts('wt:af:n:m:M:', \%opts) || @ARGV < 1) { +if (!getopts('dwt:af:n:m:M:', \%opts) || @ARGV < 1) { print STDERR "\ Usage $0: [options] [ ...] + -d debug -w Use ZOOM::IRSpy::Web subclass -t Run the specified [default: all tests] -a Test all targets (slow!) @@ -52,7 +53,11 @@ $class .= "::Web" if $opts{w}; if ($opts{M} && $opts{M} > 0) { no warnings; - $class::xslt_max_depth = $opts{M} + $ZOOM::IRSpy::xslt_max_depth = $opts{M}; +} +if ($opts{d}) { + no warnings; + $ZOOM::IRSpy::debug = $opts{d}; } my $spy = $class->new($dbname, "admin", "fruitbat", $opts{n});