From 32c7afceb8b5524b9f722a16946905469318b556 Mon Sep 17 00:00:00 2001 From: etienne Date: Wed, 7 May 2003 16:38:03 +0000 Subject: *** empty log message *** --- src/ivycontrolpanel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ivycontrolpanel b/src/ivycontrolpanel index f46aedb..6c565a6 100755 --- a/src/ivycontrolpanel +++ b/src/ivycontrolpanel @@ -85,7 +85,7 @@ my $ivylaunch_agent; #--------------------------------------------------------------------------------- &usage unless Getopt::Long::GetOptions(\%opt, 'b=s', 'nocursor', 'help'); -&usage if $opt{help}; +&usage(1) if $opt{help}; my ($fuguefile) = @ARGV; @@ -381,13 +381,14 @@ MainLoop; #================================================================================= sub usage { + my $exitflag = shift; print "Usage : ivycontrolpanel [-help] [-b ivybus] [-nocursor] [fugueconfigfile]\n"; print "\n"; print "Options :\n"; print " -b ivybus bus ivy\n"; print " -nocursor hide mouse cursor\n"; print "\n"; - exit 0; + exit 0 if $exitflag ; } # end usage -- cgit v1.1