aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-10-20 08:02:56 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-10-20 08:02:56 +0200
commita482c4db509bd2d1bf1fda0ff20c71e93478fd58 (patch)
treea618876b69c4b483731167a395725dd9dc03ee52
parent799044b9ad0bf07c98767c8937afa7e702f4257e (diff)
downloadberryclient-a482c4db509bd2d1bf1fda0ff20c71e93478fd58.tar.gz
berryclient-a482c4db509bd2d1bf1fda0ff20c71e93478fd58.zip
allow specifying target via flags
-rw-r--r--BerryClient/__main__.py6
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()