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