[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/kconfig_compiler
From:       David Faure <faure () kde ! org>
Date:       2006-01-31 15:44:58
Message-ID: 1138722298.336799.24867.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 504258 by dfaure:

-d is like --directory, it is a standalone argument before the actual directory.
This fixes "-d needs an argument" error for unsermake users.


 M  +1 -7      kconfig_compiler.cpp  


--- trunk/KDE/kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #504257:504258
@@ -47,13 +47,7 @@
     directory = ".";
 
     for (int i = 1; i < args.count(); ++i) {
-        if (args.at(i).startsWith("-d")) {
-            if (args.at(i).length() == 2) {
-                std::cerr << qPrintable(args.at(i)) << " needs an argument" << std::endl;
-                exit(1);
-            }
-            directory = args.at(i).mid(2);
-        } else if (args.at(i) == "--directory") {
+        if (args.at(i) == "-d" ||  args.at(i) == "--directory") {
             if (i + 1 > args.count()) {
                 std::cerr << qPrintable(args.at(i)) << " needs an argument" << std::endl;
                 exit(1);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic