From f7967a0dc1ea4661fd9190d837ff2dfd9f7471b6 Mon Sep 17 00:00:00 2001 From: andre Date: Thu, 5 Dec 2013 17:13:58 +0000 Subject: handle remaining args as cppoptions --- src/ivycontrolpanel | 6 ++++-- 1 file 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; } -- cgit v1.1