https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43560
Bug ID: 43560
Summary: Convert misc/cronjobs/update_totalissues.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/update_totalissues.pl to Koha::Script->describe_options,
per the convention established by bug 43546.
This script has two separate mutually-exclusive option pairs, each
currently enforced with its own hand-rolled check after parsing (setting
a deferred $want_help flag rather than dying immediately):
- --since / --interval
- --use-items / --incremental
Depends on bug 43557 (declarative mutually-exclusive option support in
Koha::Script->describe_options), so both pairs can be declared rather
than reimplemented as post-parse checks.
Test plan:
1. misc/cronjobs/update_totalissues.pl --help
Confirm the description and all options are documented.
2. For each of the two 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 watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/