[FreeSwitchConsole] -version option enabled in windows + read git revision

This commit is contained in:
rucc
2020-12-22 17:50:27 +01:00
committed by GitHub
parent 9908a9ac02
commit 7a3a8c4b70
2 changed files with 42 additions and 10 deletions

View File

@@ -686,11 +686,6 @@ int main(int argc, char *argv[])
reincarnate = SWITCH_TRUE;
reincarnate_reexec = SWITCH_TRUE;
}
else if (!strcmp(local_argv[x], "-version")) {
fprintf(stdout, "FreeSWITCH version: %s (%s)\n", switch_version_full(), switch_version_revision_human());
exit(EXIT_SUCCESS);
}
#endif
#ifdef HAVE_SETRLIMIT
else if (!strcmp(local_argv[x], "-core")) {
@@ -715,6 +710,11 @@ int main(int argc, char *argv[])
#endif
}
#endif
else if (!strcmp(local_argv[x], "-version")) {
fprintf(stdout, "FreeSWITCH version: %s (%s)\n", switch_version_full(), switch_version_revision_human());
exit(EXIT_SUCCESS);
}
else if (!strcmp(local_argv[x], "-hp") || !strcmp(local_argv[x], "-rp")) {
priority = 2;
}