Support check_ssh --hostname=ADDRESS' (but keep --host=ADDRESS' for backward

compatibility) (Ville Mattila - 1642780)


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1579 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Holger Weiss 2007-01-23 18:34:45 +00:00
parent 934bf71b9d
commit 210f39bc84
2 changed files with 3 additions and 1 deletions

View file

@ -208,3 +208,4 @@ Sebastian Schubert
Jason Hoos
Chris Grim
Nobuhiro Ban
Ville Mattila

View file

@ -102,7 +102,8 @@ process_arguments (int argc, char **argv)
static struct option longopts[] = {
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'V'},
{"host", required_argument, 0, 'H'},
{"host", required_argument, 0, 'H'}, /* backward compatibility */
{"hostname", required_argument, 0, 'H'},
{"port", required_argument, 0, 'p'},
{"use-ipv4", no_argument, 0, '4'},
{"use-ipv6", no_argument, 0, '6'},