Bug 9288: (follow-up) more tweaks
authorGalen Charlton <gmc@esilibrary.com>
Sun, 20 Apr 2014 20:20:15 +0000 (20:20 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 13 Aug 2014 18:39:44 +0000 (14:39 -0400)
- add license and copyright statement
- tidy up help text

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 9fa0649c5c755bc16b66a177cd330f93a285e05d)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 8a2d935e4e69c0ad19257ac845260451aa995a6e)

misc/sip_cli_emulator.pl

index df561f7..b6d7880 100755 (executable)
@@ -1,5 +1,22 @@
 #!/usr/bin/perl
 
+# This file is part of Koha.
+#
+# Copyright (C) 2012-2013 ByWater Solutions
+#
+# Koha is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# Koha is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see <http://www.gnu.org/licenses>.
+
 use Modern::Perl;
 
 use Socket qw(:crlf);
@@ -114,29 +131,30 @@ else {
 
 sub help {
     print
-q/
-sip_cli_emulator.pl - SIP command line emulator
-
-  Usage:
-    sip_cli_emulator.pl --address localhost -port 6001 --sip_user myuser --sip_pass mypass --location MYLOCATION --patron 70000003 --password Patr0nP@ssword
+q/sip_cli_emulator.pl - SIP command line emulator
 
-  Options:
-    --help          brief help message
+Test a SIP2 service by sending patron status and patron
+information requests.
 
-    -a --address    SIP server ip address or host name
-    -p --port       SIP server port
+Usage:
+  sip_cli_emulator.pl [OPTIONS]
 
-    -su --sip_user  SIP server login username
-    -sp --sip_pass  SIP server login password
+Options:
+  --help           display help message
 
-    -l --location   SIP location code
+  -a --address     SIP server ip address or host name
+  -p --port        SIP server port
 
-    --patron        ILS patron cardnumber or username
-    --password      ILS patron password
+  -su --sip_user   SIP server login username
+  -sp --sip_pass   SIP server login password
 
-    -t --terminator    Specifies the SIP2 message terminator, either CR, or CRLF ( defaults to CRLF )
+  -l --location    SIP location code
+  --patron         ILS patron cardnumber or username
+  --password       ILS patron password
 
-sip_cli_emulator.pl will make requests for information about the given user from the given server via SIP2.
+  -t --terminator  SIP2 message terminator, either CR, or CRLF
+                   (defaults to CRLF)
 
 /