mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-27 06:54:23 -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;
|
myargc = argc;
|
||||||
myargv = argv;
|
myargv = argv;
|
||||||
|
|
||||||
|
// print the program version and exit
|
||||||
|
if (M_ParmExists("-version") || M_ParmExists("--version"))
|
||||||
|
{
|
||||||
|
puts(PROJECT_STRING);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
killough 1/98:
|
killough 1/98:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user