LP#1675899 Targeter --retarget-interval override fix
authorBill Erickson <berickxx@gmail.com>
Fri, 24 Mar 2017 19:05:46 +0000 (15:05 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 14 Apr 2017 13:06:45 +0000 (09:06 -0400)
Treat the hold targeter --retarget-interval command line option as an
option containing a string value (the interval) instead of a boolean.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/support-scripts/hold_targeter_v2.pl

index 7f342ef..06d1c3a 100755 (executable)
@@ -34,7 +34,7 @@ GetOptions(
     'verbose'           => \$verbose,
     'target-all'        => \$target_all,
     'skip-viable'       => \$skip_viable,
-    'retarget-interval' => \$retarget_interval,
+    'retarget-interval=s'   => \$retarget_interval,
     'parallel-init-sleep=i' => \$parallel_init_sleep,
     'help'              => \$help
 ) || die "\nSee --help for more\n";