diff options
author | etienne | 2003-05-07 16:38:03 +0000 |
---|---|---|
committer | etienne | 2003-05-07 16:38:03 +0000 |
commit | 32c7afceb8b5524b9f722a16946905469318b556 (patch) | |
tree | f9cbc43fede45954a56434783bb94a54cd9001c7 /src | |
parent | 7dc4b968acec0ec88ae6bd3c1b9c6ba6e0ab1858 (diff) | |
download | ivycontrolpanel-32c7afceb8b5524b9f722a16946905469318b556.zip ivycontrolpanel-32c7afceb8b5524b9f722a16946905469318b556.tar.gz ivycontrolpanel-32c7afceb8b5524b9f722a16946905469318b556.tar.bz2 ivycontrolpanel-32c7afceb8b5524b9f722a16946905469318b556.tar.xz |
*** empty log message ***
Diffstat (limited to 'src')
-rwxr-xr-x | src/ivycontrolpanel | 5 |
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 |