fix help message for wargus tool

This commit is contained in:
Tim Felgentreff 2021-12-15 21:01:39 +01:00
parent 9656043865
commit d8351d93ba

View file

@ -682,15 +682,13 @@ int main(int argc, char * argv[]) {
SetUserDataPath(data_path); SetUserDataPath(data_path);
ExtractData(extractor_path, extractor_args, data_path, scripts_path, 1); ExtractData(extractor_path, extractor_args, data_path, scripts_path, 1);
return 0; return 0;
} } else if (!strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) {
} printf("Usage: %s [path to extraction file|--extract|--extract-no-gui]\n"
if (argc > 1) { "\tpath to extraction file - will be used as file to start the extraction process on\n"
printf("Usage: %s [path to extraction file|--extract|--extract-no-gui]\n" "\t--extract - force extraction even if data is already extracted\n"
"\tpath to extraction file - will be used as file to start the extraction process on\n" "\t--extract-no-gui - force extraction even if data is already extracted, using the console only for prompts\n\n",
"\t--extract - force extraction even if data is already extracted\n" argv[0]);
"\t--extract-no-gui - force extraction even if data is already extracted, using the console only for prompts\n", }
argv[0]);
return -1;
} }
if ( stat(stratagus_bin, &st) != 0 ) { if ( stat(stratagus_bin, &st) != 0 ) {