From 7b19739875a2317677327bd6180844e12bb9052b Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 5 Feb 2026 20:01:26 +0000 Subject: [PATCH] Fix --listen docopt parsing (only -l was working). --- cista/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cista/__main__.py b/cista/__main__.py index e397ca1..490f2da 100644 --- a/cista/__main__.py +++ b/cista/__main__.py @@ -61,10 +61,12 @@ doc = """\ Usage: cista [-c ] [-l ] [--import-droppy] [--dev] [] cista [-c ] --user [--privileged] [--password] + cista --version Options: -c CONFDIR Custom config directory - -l LISTEN-ADDR Listen on + -l, --listen LISTEN-ADDR + Listen on :8989 (localhost port, plain http) :3000 (bind another address, port) /path/to/unix.sock (unix socket) @@ -117,7 +119,7 @@ def _main(): args = docopt(doc) if args["--user"]: return _user(args) - listen = args["-l"] + listen = args["--listen"] # Validate arguments first if args[""]: path = Path(args[""]).resolve()