summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--init.c35
-rw-r--r--version.log6
3 files changed, 41 insertions, 1 deletions
diff --git a/Changes b/Changes
index 64cdf23a2..b8dc5b767 100644
--- a/Changes
+++ b/Changes
@@ -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.
diff --git a/init.c b/init.c
index be1be3663..46287fbd8 100644
--- a/init.c
+++ b/init.c
@@ -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;
diff --git a/version.log b/version.log
index 855cb37f6..e19eadcbd 100644
--- a/version.log
+++ b/version.log
@@ -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