diff options
author | andre | 2013-12-05 17:13:58 +0000 |
---|---|---|
committer | andre | 2013-12-05 17:13:58 +0000 |
commit | f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6 (patch) | |
tree | 9671721c92187f2bf5f0c404930ce17cfb867d36 /src | |
parent | 11d83a26e69573f8684ee6cf3ba921a0392ffc65 (diff) | |
download | ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.zip ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.tar.gz ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.tar.bz2 ivycontrolpanel-f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6.tar.xz |
handle remaining args as cppoptions
Diffstat (limited to 'src')
-rwxr-xr-x | src/ivycontrolpanel | 6 |
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; } |