From 88936cb5245b854d5396d5bca0a9719a9a9bd1cc Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 3 Oct 2013 22:13:40 +0000 Subject: [PATCH] bug 10419: (follow-up) improvements to the usage text Signed-off-by: Galen Charlton --- misc/cronjobs/delete_patrons.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/misc/cronjobs/delete_patrons.pl b/misc/cronjobs/delete_patrons.pl index c1ee9efae1..a1463b174c 100755 --- a/misc/cronjobs/delete_patrons.pl +++ b/misc/cronjobs/delete_patrons.pl @@ -106,11 +106,14 @@ delete_patrons - This script deletes patrons =head1 SYNOPSIS -delete_patrons.pl [-h -v -c] --not_borrowed_since=2013-07-21 --expired_before=2013-07-21 --category_code=CAT --library=CPL +delete_patrons.pl [-h|--help] [-v|--verbose] [-c|--confirm] [--not_borrowed_since=DATE] [--expired_before=DATE] [--category_code=CAT] [--library=LIBRARY] -dates can be generated with `date -d '-3 month' "+%Y-%m-%d"` +Dates should be in ISO format, e.g., 2013-07-19, and can be generated +with `date -d '-3 month' "+%Y-%m-%d"`. -Options are cumulatives. +The options to select the patron records to delete are cumulative. For +example, supplying both --expired_before and --library specifies that +that patron records must meet both conditions to be selected for deletion. =head1 OPTIONS @@ -138,7 +141,9 @@ Delete patrons in this library. =item B<-c|--confirm> -Without this flag set, this script will do nothing. +This flag must be provided in order for the script to actually +delete patron records. If it is not supplied, the script will +only report on the patron records it would have deleted. =item B<-v|--verbose> -- 2.39.5