]> git.sur5r.net Git - cc65/commitdiff
Terminate after printing the version number when -V is used.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 1 Sep 2009 14:41:37 +0000 (14:41 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 1 Sep 2009 14:41:37 +0000 (14:41 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4110 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/main.c

index ef8f648c03ac38eae7e2a7ea8e444919ab28b78b..e2cf0593c46797d44246ca70e16b5a3ca159100a 100644 (file)
@@ -667,13 +667,14 @@ static void OptVerbose (const char* Opt attribute ((unused)),
 
 
 static void OptVersion (const char* Opt attribute ((unused)),
-                       const char* Arg attribute ((unused)))
+                       const char* Arg attribute ((unused)))
 /* Print the compiler version */
 {
     fprintf (stderr,
                     "cc65 V%u.%u.%u\n"
             "SVN version: %s\n",
                     VER_MAJOR, VER_MINOR, VER_PATCH, SVNVersion);
+    exit (EXIT_SUCCESS);
 }