[Koha-bugs] [Bug 34077] writeoff_debts without --confirm doesn't show which accountline records it would have been written off

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 6 13:53:36 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34077

--- Comment #14 from Julian Maurice <julian.maurice at biblibre.com> ---
With the followup we can now execute the script without -v nor -c, which prints
nothing and does nothing. Not only useless, it may also give the impression
that something has been done without errors. Failing QA for that.
I think the current behavior in master is ok (-v is required if -c is absent)
and only the documentation needs to be fixed.

On the other hand, requiring a "verbose" flag is unusual for a CLI. So maybe
one of the following alternatives is better (or both):
- Set default verbosity to 1, and add a `-q, --quiet` flag to decrease
verbosity
- Add a `-n, --dry-run` flag and require exclusively one of -n or -c
(maybe best in an another bug report ?)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list