Report SICS version information on "SICServer -v"

This commit is contained in:
Douglas Clowes
2013-02-15 13:27:03 +11:00
parent 639e7af80c
commit 0e52709cdc
2 changed files with 12 additions and 0 deletions

View File

@ -64,6 +64,12 @@ int main(int argc, char *argv[])
if (argv[i][0] == '-') {
if (strcasecmp(argv[i], "-nolog") == 0) {
SICSLogEnable(0);
#ifdef SITE_ANSTO
} else if (strcasecmp(argv[i], "-v") == 0) {
extern void SiteReportVersion(void);
SiteReportVersion();
return 0;
#endif
} else if (strcasecmp(argv[i], "-d") == 0) {
daemonize = 1;
} else {