Bug 15157: Add my $amount and fix options
Variable my $amount was missing. Also option amount has to be declared as integer and option confirm is no longer string. Sponsored by: Koha-Suomi Oy Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> [EDIT] Run perltidy to resolve one line. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
4eb84b0dd7
commit
ac0c8cf181
1 changed files with 3 additions and 3 deletions
|
@ -77,11 +77,11 @@ use Koha::Patron::Debarments;
|
|||
|
||||
use C4::Log qw( cronlogaction );
|
||||
|
||||
my ( $help, $confirm, $message, $expiration, $file );
|
||||
my ( $amount, $help, $confirm, $message, $expiration, $file );
|
||||
GetOptions(
|
||||
'a|amount' => \$amount,
|
||||
'a|amount:i' => \$amount,
|
||||
'h|help' => \$help,
|
||||
'c|confirm:s' => \$confirm,
|
||||
'c|confirm' => \$confirm,
|
||||
'm|message:s' => \$message,
|
||||
'f|file:s' => \$file,
|
||||
'e|expiration:s' => \$expiration,
|
||||
|
|
Loading…
Reference in a new issue