From 287301e0a301a5b294c2ebe93b28d09010c7674a Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 13 Mar 2003 01:55:00 +0000 Subject: [PATCH] added verbosity for diagnostic purposes --- sbin/runHourly.pl | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/sbin/runHourly.pl b/sbin/runHourly.pl index d9f3eb72a..2c8e34cf7 100644 --- a/sbin/runHourly.pl +++ b/sbin/runHourly.pl @@ -12,26 +12,57 @@ our $webguiRoot; BEGIN { - $webguiRoot = $ARGV[0] || ".."; + $webguiRoot = ".."; unshift (@INC, $webguiRoot."/lib"); } use DBI; +use Getopt::Long; use strict qw(subs vars); use WebGUI::Session; use WebGUI::Utility; +$|=1; + +my $verbose; +my $help; + +GetOptions( + 'help'=>\$help, + 'verbose'=>\$verbose +); + +if ($help) { + print <