Change --retries to --tries and enhance with per-operation format that also allows setting the wait between tries.

This commit is contained in:
Daniel Nichter
2013-03-05 16:18:02 -07:00
parent ba315c3353
commit eefaeeb8cc
3 changed files with 138 additions and 50 deletions

View File

@@ -27,6 +27,8 @@ use warnings FATAL => 'all';
use English qw(-no_match_vars);
use constant PTDEBUG => $ENV{PTDEBUG} || 0;
use Time::HiRes qw(sleep);
sub new {
my ( $class, %args ) = @_;
my $self = {