mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 21:18:10 +00:00
(svn r3459) - CodeChange: add help-output to strgen and also verbose variants of the switches
This commit is contained in:
parent
0bcdd910f9
commit
691c93ee99
@ -1215,16 +1215,29 @@ int CDECL main(int argc, char* argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 1 && !strcmp(argv[1], "-t")) {
|
if (argc > 1 && (!strcmp(argv[1], "-t") || !strcmp(argv[1], "--todo"))) {
|
||||||
show_todo = 1;
|
show_todo = 1;
|
||||||
argc--, argv++;
|
argc--, argv++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 1 && !strcmp(argv[1], "-w")) {
|
if (argc > 1 && (!strcmp(argv[1], "-w") || !strcmp(argv[1], "--warning"))) {
|
||||||
show_todo = 2;
|
show_todo = 2;
|
||||||
argc--, argv++;
|
argc--, argv++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argc > 1 && (!strcmp(argv[1], "-h") ||
|
||||||
|
!strcmp(argv[1], "--help") || !strcmp(argv[1], "-?"))) {
|
||||||
|
puts("strgen - $Revision$");
|
||||||
|
puts(" -v | --version print version information and exit");
|
||||||
|
puts(" -h | -? | --help print this help message and exit");
|
||||||
|
puts(" -t | --todo replace any untranslated strings with '<TODO>'");
|
||||||
|
puts(" -w | --warning print a warning for any untranslated strings");
|
||||||
|
puts(" Run without parameters strgen will search for lang/english.txt and");
|
||||||
|
puts(" parse it. Passing an argument, strgen will translate that language file");
|
||||||
|
puts(" with lang/english.txt as a reference.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
_masterlang = true;
|
_masterlang = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user