equal
deleted
inserted
replaced
1283 } |
1283 } |
1284 |
1284 |
1285 if (argc > 2 && (strcmp(argv[1], "-s") == 0 || strcmp(argv[1], "--source_dir") == 0)) { |
1285 if (argc > 2 && (strcmp(argv[1], "-s") == 0 || strcmp(argv[1], "--source_dir") == 0)) { |
1286 src_dir = replace_pathsep(argv[2]); |
1286 src_dir = replace_pathsep(argv[2]); |
1287 argc -= 2, argv += 2; |
1287 argc -= 2, argv += 2; |
|
1288 continue; |
1288 } |
1289 } |
1289 |
1290 |
1290 if (argc > 2 && (strcmp(argv[1], "-d") == 0 || strcmp(argv[1], "--dest_dir") == 0)) { |
1291 if (argc > 2 && (strcmp(argv[1], "-d") == 0 || strcmp(argv[1], "--dest_dir") == 0)) { |
1291 dest_dir = replace_pathsep(argv[2]); |
1292 dest_dir = replace_pathsep(argv[2]); |
1292 argc -= 2, argv += 2; |
1293 argc -= 2, argv += 2; |
1293 } |
1294 continue; |
|
1295 } |
|
1296 |
|
1297 fprintf(stderr, "Invalid arguments\n"); |
|
1298 return 0; |
1294 } |
1299 } |
1295 |
1300 |
1296 if (dest_dir == NULL) dest_dir = src_dir; // if dest_dir is not specified, it equals src_dir |
1301 if (dest_dir == NULL) dest_dir = src_dir; // if dest_dir is not specified, it equals src_dir |
1297 |
1302 |
1298 /* strgen has two modes of operation. If no (free) arguments are passed |
1303 /* strgen has two modes of operation. If no (free) arguments are passed |