mirror of
https://github.com/cc65/cc65.git
synced 2025-01-27 09:33:42 +00:00
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
This commit is contained in:
parent
cc3c3e5f5c
commit
7c613f7a83
@ -667,13 +667,14 @@ static void OptVerbose (const char* Opt attribute ((unused)),
|
|||||||
|
|
||||||
|
|
||||||
static void OptVersion (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 */
|
/* Print the compiler version */
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"cc65 V%u.%u.%u\n"
|
"cc65 V%u.%u.%u\n"
|
||||||
"SVN version: %s\n",
|
"SVN version: %s\n",
|
||||||
VER_MAJOR, VER_MINOR, VER_PATCH, SVNVersion);
|
VER_MAJOR, VER_MINOR, VER_PATCH, SVNVersion);
|
||||||
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user