aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-06-01 18:45:00 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-06-01 18:45:00 +0200
commit21d86a9e6fa3067ff7107aec2c073e4616584ab8 (patch)
tree09140b33c8f6ef38ae0726b582056851c33a1b8f /FICS
parent39f350402be6a736b9ce84acdce7d130fa0bd590 (diff)
Added command-line option '-l'
Diffstat (limited to 'FICS')
-rw-r--r--FICS/ficsmain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c
index 63a6704..f5caca1 100644
--- a/FICS/ficsmain.c
+++ b/FICS/ficsmain.c
@@ -39,6 +39,7 @@
#include "eco.h"
#endif
#include "ficsmain.h"
+#include "legal.h"
#include "network.h"
#include "playerdb.h"
#include "ratings.h"
@@ -86,6 +87,9 @@ GetArgs(int argc, char *argv[])
case 'h':
usage(argv[0]);
break;
+ case 'l':
+ puts(legalNotice);
+ exit(0);
}
} else {
usage(argv[0]);
@@ -124,12 +128,13 @@ main_event_loop(void)
PRIVATE __dead void
usage(char *progname)
{
- fprintf(stderr, "Usage: %s [-p port] [-C] [-h]\n", progname);
+ fprintf(stderr, "Usage: %s [-p port] [-C] [-h] [-l]\n", progname);
fprintf(stderr, "\t\t-p port\t\tSpecify port. (Default=%d)\n",
DEFAULT_PORT);
fprintf(stderr, "\t\t-C\t\tStart with console player connected "
"to stdin.\n");
fprintf(stderr, "\t\t-h\t\tDisplay this information.\n");
+ fprintf(stderr, "\t\t-l\t\tDisplay the legal notice and exit.\n");
exit(EXIT_FAILURE);
}