https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43558 --- Comment #6 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 211067 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211067&action=edit Bug 43558: (QA follow-up) Require a value for --charge and --maxdays The conversion declared --charge and --maxdays with an optional value (:s), where Getopt::Long had them requiring one (=s). Passed without a value they used to stop the script with "requires an argument"; with :s they ran instead: - a bare -c gave an empty charge value, which skipped the DefaultLongOverdueChargeValue default, so items were marked lost without charging the patron - a bare --maxdays gave an empty end of range, so the query matched nothing and the script did nothing without saying why Declare both with =s again. Test plan: 1. longoverdue.pl --lost 30=1 -c => Option c requires an argument 2. longoverdue.pl --lost 30=1 --maxdays => Option maxdays requires an argument 3. longoverdue.pl --lost 30=1 -c 1 --maxdays 100 => Runs in TEST MODE over the range 30 - 100 days Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.