aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-12 15:27:01 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-14 09:24:21 +0000
commit7305e916a9da3a72c8a4e9675d9bdcab6a4bc551 (patch)
treedbe870f27daaa195d61fe936939e40d53499d2a4 /bin
parent45cb5c8567e0cb733004de4eb0d659e7c4467441 (diff)
[Warwickshire] Add archive script data.
Add an update with each report closure.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oxfordshire/archive-old-enquiries9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/oxfordshire/archive-old-enquiries b/bin/oxfordshire/archive-old-enquiries
index 7fe66703a..e82aa984e 100755
--- a/bin/oxfordshire/archive-old-enquiries
+++ b/bin/oxfordshire/archive-old-enquiries
@@ -17,10 +17,11 @@ use Getopt::Long::Descriptive;
my ($opts, $usage) = describe_options(
'%c %o',
['commit|c', "actually close reports and send emails. Omitting this flag will do a dry-run"],
- ['body|b=s', "which body ID to close reports for"],
- ['cobrand=s', "which cobrand template to use for sent emails"],
- ['closure-cutoff=s', "Anything before this will be closed with no email"],
- ['email-cutoff=s', "Anything before this will be closed with an email sent to the reporter"],
+ ['body|b=s', "which body ID to close reports for", { required => 1 } ],
+ ['user|u=s', "which user ID to assign closure updates to", { required => 1 } ],
+ ['cobrand=s', "which cobrand template to use for sent emails", { required => 1 } ],
+ ['closure-cutoff=s', "Anything before this will be closed with no email", { required => 1 } ],
+ ['email-cutoff=s', "Anything before this will be closed with an email sent to the reporter", { required => 1 } ],
['limit|l=s', "limit to a certain number of reports/users to be closed"],
['help|h', "print usage message and exit" ],
);