summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-01-26 16:15:43 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-01-27 15:12:31 (GMT)
commit03e114b11ee5cd51e0b9151e0c728fe370578d53 (patch)
tree79f031adce7ee24bb62b3b74ea56b110f6a00553 /tools/linguist
parent20c871370727630b83adce1e96ac0437802c433a (diff)
downloadQt-03e114b11ee5cd51e0b9151e0c728fe370578d53.zip
Qt-03e114b11ee5cd51e0b9151e0c728fe370578d53.tar.gz
Qt-03e114b11ee5cd51e0b9151e0c728fe370578d53.tar.bz2
complain if both sources and projects are given on the cmdline
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/lupdate/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/linguist/lupdate/main.cpp b/tools/linguist/lupdate/main.cpp
index 301f217..c5051cd 100644
--- a/tools/linguist/lupdate/main.cpp
+++ b/tools/linguist/lupdate/main.cpp
@@ -442,6 +442,10 @@ int main(int argc, char **argv)
}
} // for args
+ if (!proFiles.isEmpty() && !sourceFiles.isEmpty()) {
+ qWarning("lupdate error: Both project and source files specified.\n");
+ return 1;
+ }
if (numFiles == 0) {
printUsage();
return 1;