diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-10-20 08:02:56 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-10-20 08:02:56 +0200 |
commit | a482c4db509bd2d1bf1fda0ff20c71e93478fd58 (patch) | |
tree | a618876b69c4b483731167a395725dd9dc03ee52 | |
parent | 799044b9ad0bf07c98767c8937afa7e702f4257e (diff) | |
download | BerryClient-a482c4db509bd2d1bf1fda0ff20c71e93478fd58.tar.gz BerryClient-a482c4db509bd2d1bf1fda0ff20c71e93478fd58.zip |
allow specifying target via flags
-rw-r--r-- | BerryClient/__main__.py | 6 |
1 files 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() |