https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43558
Bug ID: 43558
Summary: Convert misc/cronjobs/longoverdue.pl to the
Getopt::Long::Descriptive convention (see bug 43546)
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Command-line Utilities
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
Convert the plain Getopt::Long option parsing in
misc/cronjobs/longoverdue.pl to Koha::Script->describe_options, per the
convention established by bug 43546.
This script has three separate mutually-exclusive option pairs, each
currently enforced with its own hand-rolled pod2usage check after
parsing:
- --category / --skip-category
- --library / --skip-library
- --itemtype / --skip-itemtype
Depends on bug 43557 (declarative mutually-exclusive option support in
Koha::Script->describe_options), so all three pairs can be declared
rather than reimplemented as three near-identical post-parse checks.
Test plan:
1. misc/cronjobs/longoverdue.pl --help
Confirm the description and all options are documented.
2. For each of the three pairs, confirm supplying both options together
is still rejected as mutually exclusive, and each option still works
correctly on its own.
3. koha-qa.pl passes for the changed file.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/