From cbbfed30eb01a702b2e61c0abcb64c834e73d654 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Sat, 17 Jun 2006 12:28:43 +0000 Subject: cleaning up help and usage git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1433 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_hpjd.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'plugins/check_hpjd.c') diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index b281c33a..632237ac 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c @@ -19,7 +19,7 @@ const char *progname = "check_hpjd"; const char *revision = "$Revision$"; -const char *copyright = "2000-2004"; +const char *copyright = "2000-2006"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "common.h" @@ -374,17 +374,18 @@ print_help (void) printf ("Copyright (c) 1999 Ethan Galstad \n"); printf (COPYRIGHT, copyright, email); - printf (_("\ -This plugin tests the STATUS of an HP printer with a JetDirect card.\n\ -Net-snmp must be installed on the computer running the plugin.\n\n")); + printf ("%s\n", _("This plugin tests the STATUS of an HP printer with a JetDirect card.")); + printf ("%s\n", _("Net-snmp must be installed on the computer running the plugin.")); + printf ("\n\n"); + print_usage (); printf (_(UT_HELP_VRSN)); - printf (_("\ - -C, --community=STRING\n\ - The SNMP community name (default=%s)\n"), DEFAULT_COMMUNITY); + printf (" %s\n", "-C, --community=STRING"); + printf (" %s", _("The SNMP community name ")); + printf (_("(default=%s)"), DEFAULT_COMMUNITY); printf (_(UT_SUPPORT)); } @@ -394,5 +395,6 @@ Net-snmp must be installed on the computer running the plugin.\n\n")); void print_usage (void) { - printf ("Usage: %s -H host [-C community]\n", progname); + printf (_("Usage:")); + printf ("%s -H host [-C community]\n", progname); } -- cgit v1.2.3-74-g34f1