From a482c4db509bd2d1bf1fda0ff20c71e93478fd58 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 20 Oct 2022 08:02:56 +0200 Subject: allow specifying target via flags --- BerryClient/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BerryClient/__main__.py b/BerryClient/__main__.py index 05b6ce5..3817cee 100644 --- a/BerryClient/__main__.py +++ b/BerryClient/__main__.py @@ -7,7 +7,9 @@ def main(): pass @main.command() -def run(): +@click.option("--host", default="localhost") +@click.option("--port", default=4711) +def run(host: str, port: int): - ins = BerryCore() + ins = BerryCore(host, port) ins.run() -- cgit v1.2.3