]> git.koha-community.org Git - koha.git/commit
Bug 34077: Improve documentation and error messages of writeoff_debts.pl
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 16 Feb 2024 08:23:13 +0000 (09:23 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 19 Jul 2024 07:34:52 +0000 (09:34 +0200)
commit0277f62f45a9569f15c34876651fdf9d4b2cb04b
treeada4716313cc8b55280ed52c42d76459867e1441
parent762399e8edb787e5ae0fa5a9459aed6fafa07dd5
Bug 34077: Improve documentation and error messages of writeoff_debts.pl

* Change the SYNOPSIS to better describe the different ways to use the
  script
* Only show the SYNOPSIS when options used are wrong (unknown option,
  no filter options, or neither -c nor -v)
* Show the options details only with --help
* Clarify the fact that -v is required when -c is not supplied in the
  description of both options
* Print a specific error message for the following cases:
  * no filters options
  * neither -c nor -v was supplied

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 215b29a737eff191477306581b8b3a1579adc9e3)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0061ffc6cedfb719db5fc3d38ad81da89018a6fe)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/writeoff_debts.pl