diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-01-08 16:16:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-01-09 17:31:45 +0000 |
commit | 73a6134c4bb8c29e2755cf7241524dc0538a4a6a (patch) | |
tree | b1b8cc7188a46ebc8b54b5fb510f04511c865135 /bin/process-inactive-reports | |
parent | a47cdf03631855fd83866b932161eaa8ccf0c8b5 (diff) |
[Inactive] Add option to only act on one cobrand.
Diffstat (limited to 'bin/process-inactive-reports')
-rwxr-xr-x | bin/process-inactive-reports | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/process-inactive-reports b/bin/process-inactive-reports index c79b401a3..f1e9af2eb 100755 --- a/bin/process-inactive-reports +++ b/bin/process-inactive-reports @@ -15,7 +15,7 @@ use FixMyStreet::Script::Inactive; use Pod::Usage; my %h; -GetOptions(\%h, 'anonymize=i', 'close=i', 'delete=i', 'verbose|v', 'help|h', 'dry-run|n'); +GetOptions(\%h, 'anonymize=i', 'close=i', 'delete=i', 'cobrand=s', 'verbose|v', 'help|h', 'dry-run|n'); pod2usage(0) if $h{help}; pod2usage(1) unless $h{anonymize} || $h{close} || $h{delete}; @@ -29,12 +29,13 @@ process-inactive-reports - deal with anonymizing inactive non-open reports =head1 SYNOPSIS -process-inactive-reports [--anonymize N] [--close N] [--delete N] +process-inactive-reports [--anonymize N] [--close N] [--delete N] [--cobrand COBRAND] Options: --anonymize Anonymize non-open reports (and related) inactive longer than this time (months) --close Close comments on non-open reports inactive longer than this time (months) --delete Delete non-open reports inactive longer than this time (months) + --cobrand Only act upon reports made on this cobrand --dry-run Don't actually anonymize anything or send any emails --verbose Output as to which reports are being affected --help This help message |