From db4559383f11fa79e5280c5548152ca665fab5bf Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Wed, 28 Jun 2023 23:27:44 +0200 Subject: [PATCH] Fix backend CLI options --- web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.py b/web.py index 0893545..d66dfba 100644 --- a/web.py +++ b/web.py @@ -242,8 +242,8 @@ class MyServer(BaseHTTPRequestHandler): def parse_args(): parser = argparse.ArgumentParser(description='Zetikette backend') - parser.add_argument('--port', type=int, help=f'default: {PORT}') - parser.add_argument('--data-dir', help=f'default: {DATA_DIR}') + parser.add_argument('--port', type=int, default=PORT, help=f'default: {PORT}') + parser.add_argument('--data-dir', default=DATA_DIR, help=f'default: {DATA_DIR}') return parser.parse_args()