+ else if ( a == "--target" || a == "-d" ) {
+ has_target = true;
+ if ( i < argc-1 && !QString( argv[i+1] ).startsWith("-") ) {
+ targetDirPath = argv[i+1];
+ i++;
+ }
+ else {
+ targetDirPath = QString::null;
+ }
+ }
+ else if ( a == "--tmp" || a == "-t" ) {
+ has_tmp = true;
+ if ( i < argc-1 && !QString( argv[i+1] ).startsWith("-") ) {
+ tmpDirPath = argv[i+1];
+ i++;
+ }
+ else {
+ tmpDirPath = QString::null;
+ }
+ }
+ else if ( a == "--file" || a == "-f" ) {
+ has_xml = true;
+ if ( i < argc-1 && !QString( argv[i+1] ).startsWith("-") ) {
+ xmlFileName = argv[i+1];
+ i++;
+ }
+ else {
+ xmlFileName = QString::null;
+ }
+ }
+ }
+ if ( has_xml && xmlFileName.isEmpty() ) {
+ printf("Please specify the configuration XML file!\n");
+ return 1;
+ }
+ if ( has_target && targetDirPath.isEmpty() ) {
+ printf("Please specify the target directory path!\n");
+ return 1;
+ }
+ if ( has_tmp && tmpDirPath.isEmpty() ) {
+ printf("Please specify the temprary directory path!\n");
+ return 1;