[Koha-bugs] [Bug 4126] bulkmarcimport.pl allows -b and -a to be specified simultaneously
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 10 15:40:45 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4126
--- Comment #2 from Magnus Enger <magnus at libriotech.no> ---
Created attachment 57428
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57428&action=edit
Bug 4126 - Exit bulkmarcimport if -a and -b given
Currently it is possible to spceify both --biblios and --authorities
as command line switches to bulkmarcimport.pl. This does not make sense
so we should exit early and explain that these switches are mutually
exclusive.
To test:
- Run one of these and check that there is no complaint about missing
options:
perl misc/migration_tools/bulkmarcimport.pl -a -b
sudo koha-shell -c "perl misc/migration_tools/bulkmarcimport.pl -a -b"
kohadev
- Observe that this displays the perldoc, but does not complain about
mutually exclusive switches.
- Apply the patch
- Rerun the command(s) from earlier.
- Verify that the script is now halted and a small explanation given.
--
You are receiving this mail because:
You are watching all bug changes.
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list