https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44126
--- Comment #1 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 211734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211734&action=edit Bug 44126: Allow scripts to declare deprecated, ignored options in Koha::Script Scripts converted to Getopt::Long::Descriptive (bug 43546) exit 1 on any unknown option. Plain Getopt::Long only warned, so a script that did not check the result of GetOptions carried on. Where a script has dropped an option in the past, existing cron jobs still passing it would now silently stop running (their output is usually sent to /dev/null). Add an opt-in deprecated_options key to the describe_options meta hash, taking option specs such as 'commit=i'. Each such option (and its value) is removed from the command line with a deprecation warning on STDERR, as the legacy single-dash shim does. Everything else that is not a declared option stays an error, so typos are still caught. To test: 1. prove t/Koha/Script.t => Success Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- 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/
