diff options
author | ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-04-04 14:29:36 +0000 |
---|---|---|
committer | ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-04-04 14:29:36 +0000 |
commit | 83a2b9b561be6a0503248790f04b336595b19442 (patch) | |
tree | a702e713e0f258f5fb780d091851228805de1492 /init.c | |
parent | 1eb2bf791a953cea3ed72a0a4b5ef8380fb656b3 (diff) |
BUILD : 1.7.0 (32) BUGS : NOTES : Added -version arguement to return anope version and build information
git-svn-id: svn://svn.anope.org/anope/trunk@32 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@22 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -428,6 +428,10 @@ static int parse_options(int ac, char **av) } else if (!strcmp(s, "is44")) { is44 = 1; #endif + } else if (!strcmp(s, "version")) { + fprintf(stdout, "Anope-%s %s -- %s\n", version_number, + version_flags, version_build); + return 0; } else { fprintf(stderr, "Unknown option -%s\n", s); return -1; |