summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ivycontrolpanel5
1 files changed, 3 insertions, 2 deletions
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