mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
BUILD : 1.7.0 (35) BUGS : NOTES : Added -help arguement for command line parameter information
git-svn-id: svn://svn.anope.org/anope/trunk@35 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@25 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
2249a91aa8
commit
0197854015
@@ -1,6 +1,7 @@
|
||||
Anope Version 1.7.0
|
||||
--------------------
|
||||
Provided by Anope Dev. <dev@anope.org>
|
||||
2004/04/07 Added -help arguement for command line parameters
|
||||
2004/04/04 Added -version argument to return version and build info
|
||||
2004/04/04 Fixed moduleAddCommand for a non-existant service
|
||||
2004/04/01 Added memo2mail and /msg memoserv set notify MAIL/NOMAIL.
|
||||
|
||||
@@ -432,6 +432,41 @@ static int parse_options(int ac, char **av)
|
||||
fprintf(stdout, "Anope-%s %s -- %s\n", version_number,
|
||||
version_flags, version_build);
|
||||
exit(EXIT_SUCCESS);
|
||||
} else if (!strcmp(s, "help")) {
|
||||
fprintf(stdout, "Anope-%s %s -- %s\n", version_number,
|
||||
version_flags, version_build);
|
||||
fprintf(stdout,
|
||||
"Anope IRC Services (http://www.anope.org)\n");
|
||||
fprintf(stdout, "Usage ./services [options] ...\n");
|
||||
fprintf(stdout,
|
||||
"-remote -remote hostname[:port]\n");
|
||||
fprintf(stdout, "-local -local hostname[:port]\n");
|
||||
fprintf(stdout, "-name -name servername\n");
|
||||
fprintf(stdout, "-desc -desc serverdesc\n");
|
||||
fprintf(stdout, "-user -user serviceuser\n");
|
||||
fprintf(stdout, "-host -host servicehost\n");
|
||||
fprintf(stdout,
|
||||
"-update -update updatetime(secs)\n");
|
||||
fprintf(stdout,
|
||||
"-expire -expire expiretime(secs)\n");
|
||||
fprintf(stdout, "-debug -debug\n");
|
||||
fprintf(stdout, "-nofork -nofork\n");
|
||||
fprintf(stdout, "-logchan -logchan channelname\n");
|
||||
fprintf(stdout, "-skeleton -skeleton\n");
|
||||
fprintf(stdout, "-forceload -forceload\n");
|
||||
fprintf(stdout, "-readonly -readonly\n");
|
||||
fprintf(stdout, "-noexpire -noexpire\n");
|
||||
fprintf(stdout, "-is44 -is44\n");
|
||||
fprintf(stdout, "-version -version\n");
|
||||
fprintf(stdout, "-help -help\n");
|
||||
fprintf(stdout, "-log -log logfilename\n");
|
||||
fprintf(stdout,
|
||||
"-dir -dir servicesdirectory\n\n");
|
||||
fprintf(stdout,
|
||||
"Further support is available from http://www.anope.org\n");
|
||||
fprintf(stdout,
|
||||
"Or visit US on IRC at irc.anope.org #anope\n");
|
||||
exit(EXIT_SUCCESS);
|
||||
} else {
|
||||
fprintf(stderr, "Unknown option -%s\n", s);
|
||||
return -1;
|
||||
|
||||
+5
-1
@@ -8,11 +8,15 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="0"
|
||||
VERSION_BUILD="34"
|
||||
VERSION_BUILD="35"
|
||||
VERSION_EXTRA=""
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.0 (35)
|
||||
# BUGS :
|
||||
# NOTES : Added -help arguement for command line parameter information
|
||||
#
|
||||
# BUILD : 1.7.0 (34)
|
||||
# BUGS : none
|
||||
# NOTES : Fixed indentation issue on memoserv.c
|
||||
|
||||
Reference in New Issue
Block a user