1
0
mirror of https://github.com/prirun/p50em.git synced 2026-02-03 23:02:45 +00:00

Print version and exit for "em --version"

This commit is contained in:
Jim
2008-09-12 16:42:43 -04:00
parent 4466fa57e7
commit f70c0561cb

3
em.c
View File

@@ -4313,6 +4313,9 @@ main (int argc, char **argv) {
struct timezone tz;
printf("[Prime Emulator ver %d %s]\n", EMULATOR_VERSION, __DATE__);
if (argc > 1 && (strcmp(argv[1],"--version") == 0)) {
exit(0);
}
/* re-open stderr as error.log */