aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()