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_ntp.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'plugins/check_ntp.c') diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 655dd4fc..9cda2776 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -768,23 +768,29 @@ int main(int argc, char *argv[]){ } -void print_usage(void){ - printf("\ -Usage: %s -H [-O] [-w ] [-c ] [-j ] [-k ] [-v verbose]\ -\n", progname); -} void print_help(void){ print_revision(progname, revision); printf ("Copyright (c) 1999 Ethan Galstad\n"); printf (COPYRIGHT, copyright, email); + + printf ("%s\n", _("This plugin checks the selected ntp server")); + printf ("\n\n"); + print_usage(); printf (_(UT_HELP_VRSN)); printf (_(UT_HOST_PORT), 'p', "123"); printf (_(UT_WARN_CRIT)); printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); printf (_(UT_VERBOSE)); - printf(_(UT_SUPPORT)); + printf (_(UT_SUPPORT)); +} + +void +print_usage(void) +{ + printf (_("Usage:")); + printf("%s -H [-O] [-w ] [-c ] [-j ] [-k ] [-v verbose]\n", progname); } -- cgit v1.2.3