]> git.sur5r.net Git - cc65/blobdiff - src/sim65/main.c
All programs print version and exit successfully.
[cc65] / src / sim65 / main.c
index 5405af29ff87f2293c3421f472c89ddd124bffd1..f7f73165a515727e4be8c6321f06dd194bef463d 100644 (file)
@@ -121,7 +121,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
                         const char* Arg attribute ((unused)))
 /* Print the simulator version */
 {
-    fprintf (stderr, "sim65 V%s\n", GetVersionAsString ());
+    fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
+    exit(EXIT_SUCCESS);
 }
 
 static void OptQuitXIns (const char* Opt attribute ((unused)),