From e5781e466bd681cbe743172656a98b17730f42b2 Mon Sep 17 00:00:00 2001 From: axis Date: Fri, 13 May 2011 16:07:56 +0200 Subject: [PATCH 1/2] Fixed an argument parsing bug in syncqt. We need to move the detection up above the general -no-* match, otherwise it never hits. Reviewed-by: Pending --- bin/syncqt | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/syncqt b/bin/syncqt index 69d50ec..45a02e2 100755 --- a/bin/syncqt +++ b/bin/syncqt @@ -590,6 +590,12 @@ while ( @ARGV ) { $arg eq "-relative" || $arg eq "-check-includes") { $var = substr($arg, 1); $val = "yes"; + } elsif($arg eq "-no-module-fwd") { + $var = "no_module_fwd"; + $val = "yes"; + } elsif($arg eq "-no-module-version-header") { + $var = "no_module_version_header"; + $val = "yes"; } elsif($arg =~ /^-no-(.*)$/) { $var = $1; $val = "no"; @@ -619,12 +625,6 @@ while ( @ARGV ) { # skip, it's been dealt with at the top of the file shift @ARGV; next; - } elsif($arg eq "-no-module-fwd") { - $var = "no_module_fwd"; - $val = "yes"; - } elsif($arg eq "-no-module-version-header") { - $var = "no_module_version_header"; - $val = "yes"; } elsif($arg =~/^-/) { print "Unknown option: $arg\n\n" if(!$var); showUsage(); -- 1.7.3.4