All programs print version and exit successfully.

* All programs are now using the ProgName variable as well.
This commit is contained in:
Chris Cacciatore
2016-08-11 16:46:48 -07:00
parent d9a2452b81
commit bad8412131
12 changed files with 19 additions and 9 deletions

View 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);
}