Add a -version parameter like most programs have
Supports both -version and --version, even though the later breaks the normal convention of Doom parameters, it is common enough with any general program that it should be useful to include in this.
This commit is contained in:
parent
54500659f9
commit
b00a10ae33
1 changed files with 11 additions and 0 deletions
11
src/i_main.c
11
src/i_main.c
|
|
@ -41,6 +41,17 @@ int main(int argc, char **argv)
|
|||
myargc = argc;
|
||||
myargv = argv;
|
||||
|
||||
//!
|
||||
// @arg
|
||||
//
|
||||
// Print the program version and exit.
|
||||
//
|
||||
|
||||
if (M_ParmExists("-version") || M_ParmExists("--version")) {
|
||||
puts (PACKAGE_NAME " " PACKAGE_VERSION);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
M_FindResponseFile();
|
||||
|
||||
#ifdef SDL_HINT_NO_SIGNAL_HANDLERS
|
||||
|
|
|
|||
Loading…
Reference in a new issue