Bugzilla – Attachment 125864 Details for
Bug 18631
`cleanup_database.pl` should take an option for modules in action_logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18631: Use - instead of _ for options
Bug-18631-Use---instead-of--for-options.patch (text/plain), 1.77 KB, created by
Jonathan Druart
on 2021-10-07 09:12:04 UTC
(
hide
)
Description:
Bug 18631: Use - instead of _ for options
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-07 09:12:04 UTC
Size:
1.77 KB
patch
obsolete
>From 9f3e5aaa175db0d107a89373cececcb591048950 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 7 Oct 2021 11:10:45 +0200 >Subject: [PATCH] Bug 18631: Use - instead of _ for options > >To match existing options >--- > misc/cronjobs/cleanup_database.pl | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index 08ca37d3fad..9b4f299b911 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -80,8 +80,8 @@ Usage: $0 [-h|--help] [--confirm] [--sessions] [--sessdays DAYS] [-v|--verbose] > amountoutstanding is 0 or NULL. > In the case of --fees, DAYS must be greater than > or equal to 1. >- --log_modules Specify which action log modules to trim. Repeatable. >- --preserve_logs Specify which action logs to exclude. Repeatable. >+ --log-modules Specify which action log modules to trim. Repeatable. >+ --preserve-logs Specify which action logs to exclude. Repeatable. > --logs DAYS purge entries from action_logs older than DAYS days. > Defaults to 180 days if no days specified. > --searchhistory DAYS purge entries from search_history older than DAYS days. >@@ -167,8 +167,8 @@ GetOptions( > 'import:i' => \$pImport, > 'z3950' => \$pZ3950, > 'logs:i' => \$pLogs, >- 'log_module:s' => \@log_modules, >- 'preserve_log:s' => \@preserve_logs, >+ 'log-module:s' => \@log_modules, >+ 'preserve-log:s' => \@preserve_logs, > 'messages:i' => \$pMessages, > 'fees:i' => \$fees_days, > 'searchhistory:i' => \$pSearchhistory, >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18631
:
123231
|
123857
|
125485
| 125864