Bug 35996: Make it clear that --category-code can not be used alone
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 5 Feb 2024 16:50:32 +0000 (16:50 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Apr 2024 07:35:37 +0000 (09:35 +0200)
commit875809d66d4e6bde5385d88aad9f05f472a67b6b
treefc2a557c61fca4b2662ff3be1158f56b532bdc6f
parentf2204a1744513aa251ada33c375eef4849d45cd4
Bug 35996: Make it clear that --category-code can not be used alone

This patch adds a clarification to writeoff_debts.pl to make it clear that --category-code can't be used as the only filter when running the script. If this is the case, the script just displays the help menu as it is expecting one of the other filters

Test plan:
1) Run perl misc/cronjobs/writeoff_debts.pl --category-code TEST --confirm
2) Observe that the help menu is displayed instead of running the script
3) Check the help menu for the text added in this patch

WNC amended patch - added same warning in the option section

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
misc/cronjobs/writeoff_debts.pl