From aa2c0b79dcf064f4ebcbfc0a1d8bc1cba1e6f3bb Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 4 Dec 2024 12:15:15 -0500 Subject: [PATCH] Add --config-file argument to nntp-tiny-server --- bin/nntp-tiny-server | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/nntp-tiny-server b/bin/nntp-tiny-server index 0f394ae..6bc8d91 100755 --- a/bin/nntp-tiny-server +++ b/bin/nntp-tiny-server @@ -9,11 +9,12 @@ from nntp.tiny.server import Server from nntp.tiny.daemon import Daemon parser = argparse.ArgumentParser(description='Tiny NNTP server') -parser.add_argument('--daemon', '-d', action='store_true', help='Run NNTP server as daemon in background') +parser.add_argument('--daemon', '-d', action='store_true', help='Run NNTP server as daemon in background') +parser.add_argument('--config-file', '-f', type=str, help='Specify a configuration file location') args = parser.parse_args() -config = Config.load() +config = Config.load(args.config_file) server = Server(config) if args.daemon: