diff options
-rw-r--r-- | FICS/ficsmain.c | 7 |
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); } |