https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44127

--- Comment #1 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211739
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211739&action=edit
Bug 44127: Restore the -h alias for --help in Koha::Script->describe_options

cleanup_database.pl, gather_print_notices.pl, longoverdue.pl,
process_message_queue.pl and update_totalissues.pl accepted -h as an
alias for --help under plain Getopt::Long. After conversion to
Getopt::Long::Descriptive (bug 43546) only --help and -? are provided,
so -h printed the usage text with an error and exited 1.

Add h as an alias of --help unless the script declares an option called
h of its own (cart_to_shelf.pl uses -h for --hours).

To test:
1. prove t/Koha/Script.t
   => Success
2. perl misc/cronjobs/longoverdue.pl -h
   => usage text, exit status 0
3. perl misc/cronjobs/cart_to_shelf.pl -h 1
   => treated as --hours 1, not help

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
You are receiving this mail because:
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/

Reply via email to