From 9db482467503a6d0e8d2f3043e08358cea08bc27 Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Thu, 14 Jul 2022 10:26:29 -0400 Subject: [PATCH] Bug 31155: Document --since option in help of borrowers-force-messaging-defaults.pl This patch adds a section about the --since option in the help section of borrowers-force-messaging-defaults.pl To test: 0) Apply patch 1) run the script with the --help option, e.g. ./misc/maintenance/borrowers-force-messaging-defaults.pl --help --> There should be an explanation of the --since option with examples for specific and relative dates 2) Optionally, run the script with different options --> The behaviour shouldn't have changed Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 42b316912097fc11d55d3f8bacc4ade2107b4c7e) Signed-off-by: Lucas Gass --- misc/maintenance/borrowers-force-messaging-defaults.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/misc/maintenance/borrowers-force-messaging-defaults.pl b/misc/maintenance/borrowers-force-messaging-defaults.pl index 7f2bba0c69..22cb01a706 100755 --- a/misc/maintenance/borrowers-force-messaging-defaults.pl +++ b/misc/maintenance/borrowers-force-messaging-defaults.pl @@ -134,6 +134,16 @@ already set their preferences. Will only update patrons in the category specified. +=item B<--since> + +Will only update borrowers enrolled since the specified date. + +Examples: + +--since "2022-07-13" + +--since `date -d "1 day ago" '+%Y-%m-%d' + =back =cut -- 2.39.5