mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
add a -version parameter to print the program version and exit
This commit is contained in:
parent
558829dfd9
commit
2215de96a3
@ -82,6 +82,12 @@ int main(int argc, char **argv)
|
||||
myargc = argc;
|
||||
myargv = argv;
|
||||
|
||||
// print the program version and exit
|
||||
if (M_ParmExists("-version") || M_ParmExists("--version"))
|
||||
{
|
||||
puts(PROJECT_STRING);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/*
|
||||
killough 1/98:
|
||||
|
Loading…
x
Reference in New Issue
Block a user