As per FIXME from 2009: # FIXME: add command-line options for verbosity and summary # FIXME: expand perldoc, explain intended logic # FIXME: refactor all subroutines into C4 for testability It is not user-friendly to have a command-line script which doesn't accept a --help parameter.
Looks like the code has been refactored, but there are still two FIXMEs: # FIXME: add command-line options for verbosity and summary # FIXME: expand perldoc, explain intended logic
The script also has this: my $rthq = C4::Context->preference('RealTimeHoldsQueue'); if ( $rthq && !$force ) { say "RealTimeHoldsQueue system preference is enabled, holds queue not built."; say "Use --force to force building the holds queue."; exit(1); } Which means that if a site turns on RealTimeHoldsQueue, the script starts generating "unnecessary" output. Well, if you run the script interactively you might want this output, but not if you run it from a cronjob (which is set up hourly automatically by the Debian packages). So maybe a --quiet option to make the cronjob run without this output?
So quiet would be used to suppress the warning, while the holds queue is only rebuilt for instances with RelTimeHoldsQueue off?
(In reply to Katrin Fischer from comment #3) > So quiet would be used to suppress the warning, while the holds queue is > only rebuilt for instances with RelTimeHoldsQueue off? Yes, that is how I see it.