Bug 28995: Update aliases

Add an alias for added-before, added-after (Using an alias makes it
backwards compatible) and update the POD.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>

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:
Martin Renvoize 2021-11-15 09:35:04 +00:00 committed by Tomas Cohen Arazi
parent 0a5f4350bd
commit 8f7d565df5
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -13,13 +13,13 @@ use Koha::Script -cron;
my ( $help, $verbose, @type, $before, $after, $file, $confirm );
GetOptions(
'h|help' => \$help,
'v|verbose+' => \$verbose,
't|type:s' => \@type,
'ab|added_before:s' => \$before,
'aa|added_after:s' => \$after,
'f|file:s' => \$file,
'c|confirm' => \$confirm,
'h|help' => \$help,
'v|verbose+' => \$verbose,
't|type:s' => \@type,
'ab|added_before|added-before:s' => \$before,
'aa|added_after|added-after:s' => \$after,
'f|file:s' => \$file,
'c|confirm' => \$confirm,
);
@type = split( /,/, join( ',', @type ) );
@ -154,13 +154,20 @@ This is to prevent an accidental 'writeoff all' operation.
Prints this help message
=item B<--added_before>
=item B<--added-before>
Writeoff debts added before the date passed.
Dates should be in ISO format, e.g., 2013-07-19, and can be generated
with `date -d '-3 month' --iso-8601`.
=item B<--added-after>
Writeoff debts added after the date passed.
Dates should be in ISO format, e.g., 2013-07-19, and can be generated
with `date -d '-3 month' --iso-8601`.
=item B<--type>
Writeoff debts of the passed type. Accepts a list of CREDIT_TYPE_CODEs.