From 9fa0649c5c755bc16b66a177cd330f93a285e05d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 20 Apr 2014 20:20:15 +0000 Subject: [PATCH] Bug 9288: (follow-up) more tweaks - add license and copyright statement - tidy up help text Signed-off-by: Galen Charlton --- misc/sip_cli_emulator.pl | 50 +++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/misc/sip_cli_emulator.pl b/misc/sip_cli_emulator.pl index df561f7961..b6d7880b77 100755 --- a/misc/sip_cli_emulator.pl +++ b/misc/sip_cli_emulator.pl @@ -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 . + 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) / -- 2.39.5