From: uz Date: Tue, 1 Sep 2009 14:41:37 +0000 (+0000) Subject: Terminate after printing the version number when -V is used. X-Git-Tag: V2.13.0rc1~146 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c613f7a8317fbf9a16c9a05ee787714a882644c;p=cc65 Terminate after printing the version number when -V is used. git-svn-id: svn://svn.cc65.org/cc65/trunk@4110 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/main.c b/src/cc65/main.c index ef8f648c0..e2cf0593c 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -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); }