summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandre2013-12-05 17:13:58 +0000
committerandre2013-12-05 17:13:58 +0000
commitf7967a0dc1ea4661fd9190d837ff2dfd9f7471b6 (patch)
tree9671721c92187f2bf5f0c404930ce17cfb867d36
parent11d83a26e69573f8684ee6cf3ba921a0392ffc65 (diff)
downloadivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.zip
ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.tar.gz
ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.tar.bz2
ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.tar.xz
handle remaining args as cppoptions
-rwxr-xr-xsrc/ivycontrolpanel6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ivycontrolpanel b/src/ivycontrolpanel
index 0ad3bda..4a18874 100755
--- a/src/ivycontrolpanel
+++ b/src/ivycontrolpanel
@@ -109,8 +109,10 @@ Getopt::Long::Configure('pass_through');
'position=s','pingthreshold=s');
&usage(1) if $opt{help};
-my ($fuguefile) = @ARGV;
+my ($fuguefile) = pop @ARGV;
+&usage unless defined($fuguefile);
+my @cppopts = @ARGV;
#---------------------------------------------------------------------------------
#
@@ -410,7 +412,7 @@ IvyIO::bind_for_kill_all(\&killandquit);
my ($code, @fugueconfigdata);
if ($fuguefile) {
- ($code, @fugueconfigdata) = &FugueConfig::parse($fuguefile);
+ ($code, @fugueconfigdata) = &FugueConfig::parse($fuguefile, @cppopts);
die "Can't parse fugue config file $fuguefile\n" unless $code;
}