mirror of https://github.com/OpenTTD/OpenTTD.git
Cleanup: version of strgen/settingsgen was always $Revision$, so remove it
This commit is contained in:
parent
2dbd974d4c
commit
2efd88d513
|
@ -400,7 +400,6 @@ static bool CompareFiles(const char *n1, const char *n2)
|
|||
|
||||
/** Options of settingsgen. */
|
||||
static const OptionData _opts[] = {
|
||||
GETOPT_NOVAL( 'v', "--version"),
|
||||
GETOPT_NOVAL( 'h', "--help"),
|
||||
GETOPT_GENERAL('h', '?', nullptr, ODF_NO_VALUE),
|
||||
GETOPT_VALUE( 'o', "--output"),
|
||||
|
@ -455,15 +454,10 @@ int CDECL main(int argc, char *argv[])
|
|||
if (i == -1) break;
|
||||
|
||||
switch (i) {
|
||||
case 'v':
|
||||
fmt::print("$Revision$\n");
|
||||
return 0;
|
||||
|
||||
case 'h':
|
||||
fmt::print("settingsgen - $Revision$\n"
|
||||
fmt::print("settingsgen\n"
|
||||
"Usage: settingsgen [options] ini-file...\n"
|
||||
"with options:\n"
|
||||
" -v, --version Print version information and exit\n"
|
||||
" -h, -?, --help Print this help message and exit\n"
|
||||
" -b FILE, --before FILE Copy FILE before all settings\n"
|
||||
" -a FILE, --after FILE Copy FILE after all settings\n"
|
||||
|
|
|
@ -397,7 +397,6 @@ static inline char *replace_pathsep(char *s) { return s; }
|
|||
|
||||
/** Options of strgen. */
|
||||
static const OptionData _opts[] = {
|
||||
GETOPT_NOVAL( 'v', "--version"),
|
||||
GETOPT_GENERAL('C', '\0', "-export-commands", ODF_NO_VALUE),
|
||||
GETOPT_GENERAL('L', '\0', "-export-plurals", ODF_NO_VALUE),
|
||||
GETOPT_GENERAL('P', '\0', "-export-pragmas", ODF_NO_VALUE),
|
||||
|
@ -422,10 +421,6 @@ int CDECL main(int argc, char *argv[])
|
|||
if (i == -1) break;
|
||||
|
||||
switch (i) {
|
||||
case 'v':
|
||||
fmt::print("$Revision$\n");
|
||||
return 0;
|
||||
|
||||
case 'C':
|
||||
fmt::print("args\tflags\tcommand\treplacement\n");
|
||||
for (const CmdStruct *cs = _cmd_structs; cs < endof(_cmd_structs); cs++) {
|
||||
|
@ -468,8 +463,7 @@ int CDECL main(int argc, char *argv[])
|
|||
|
||||
case 'h':
|
||||
fmt::print(
|
||||
"strgen - $Revision$\n"
|
||||
" -v | --version print version information and exit\n"
|
||||
"strgen\n"
|
||||
" -t | --todo replace any untranslated strings with '<TODO>'\n"
|
||||
" -w | --warning print a warning for any untranslated strings\n"
|
||||
" -h | -? | --help print this help message and exit\n"
|
||||
|
|
Loading…
Reference in New Issue