]> git.koha-community.org Git - koha.git/commit
Bug 11509: (trivial rmaint followup) wrong parameter count
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 10 Feb 2014 14:55:06 +0000 (11:55 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 7 Mar 2014 08:08:57 +0000 (09:08 +0100)
commit50c316916e9c1ee74939f7ede91c65fe9e9683b6
tree710869595cb5751770e2318ab81953c945f3fc84
parent142f4913fd36ec0c3b5f68faf51b08e376e4edcb
Bug 11509: (trivial rmaint followup) wrong parameter count

While adding the --help and -h switches I forgot to change to arguments
count validation so that one can actually use those parameters (i.e.
koha-create should accept being invoked with only one parameter).

This patch just changes the minimum parateres required from 2 to 1.

To reproduce:
- Run 'koha-create --help' from master
=> Usage information is printed BUT ALSO an "Error: wrong parameters"
   message
- Apply the patch and
- Run 'koha-create --help'
=> Usage informatio it printed and no error message.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 692c4f03b5adebec754c1a8db16e2db97c63f554)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/scripts/koha-create