Mercurial > fife-parpg
comparison utils/dat_extract/usage.cpp @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children | 90005975cdbb |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a0efb7baf70 |
---|---|
1 #include <iostream> | |
2 int print_usage(const char* prg_name, int exit_code) { | |
3 std::cout << "USAGE: " << prg_name; | |
4 std::cout << " [-s DAT_source] [-f 1|2] -t target_file" << std::endl; | |
5 std::cout << "" << std::endl; | |
6 std::cout << "This is a very limited DAT extraction utility that can read" << std::endl; | |
7 std::cout << "Fo1 and Fo2 DAT files and extract a single file." << std::endl; | |
8 std::cout << "" << std::endl; | |
9 std::cout << "The DAT source _has to be_ in the same directory, furthermore" << std::endl; | |
10 std::cout << "the program needs the 'content' directory (otherwise the engine" << std::endl; | |
11 std::cout << "will not start)." << std::endl; | |
12 std::cout << "" << std::endl; | |
13 std::cout << "The default DAT file is critter.dat, the default format is" << std::endl; | |
14 std::cout << "FO1; you have to specify '-f 2' if you work on Fo2 DAT files!" << std::endl; | |
15 std::cout << "" << std::endl; | |
16 std::cout << "The target_file has to be the full path inside the DAT file" << std::endl; | |
17 std::cout << "(using / as directory separator); the output file will have" << std::endl; | |
18 std::cout << "the same filename (in the current directory)." << std::endl; | |
19 exit(exit_code); | |
20 } |