Environment
Expected behavior
Options and Error message should fit.
Actual behavior
otobo@542227a0f0f6:~$ bin/otobo.Console.pl Maint::Log::CommunicationLog --force-delete --delete-by-hours-old 0
Management of communication logs.
Usage:
otobo.Console.pl Maint::Log::CommunicationLog [--force-delete] [--purge] [--delete-by-hours-old ...] [--delete-by-date ...] [--delete-by-id ...] [--verbose]
Options:
[--force-delete] - Delete even if still processing.
[--purge] - Purge successful communications older than a week and all communications older than a month. These durations are specified in SysConfig.
[--delete-by-hours-old ...] - Delete logs older than these number of hours. Example: --delete-by-hours-old="7"
[--delete-by-date ...] - Delete from specific date. Example: --delete-by-date="2001-12-01"
[--delete-by-id ...] - Delete logs from CommunicationID. Example: --delete-by-id="abcdefg12345"
[--verbose] - Display debug information (can be used with --purge). Example: --purge --verbose
[--help|h] - Display help for this command.
[--no-ansi] - Do not perform ANSI terminal output coloring.
[--quiet] - Suppress informative output, only retain error messages.
Error: Either --purge, --delete-by-id, --delete-by-date or --delete-by-days-old must be given!
The errors --delete-by-days-old is not listet in the options, should that be --delete-by-hours-old?
How to reproduce
Run the command with --delete-by-hours-old 0
Environment
Expected behavior
Options and Error message should fit.
Actual behavior
The errors
--delete-by-days-oldis not listet in the options, should that be--delete-by-hours-old?How to reproduce
Run the command with
--delete-by-hours-old 0