diff --git a/tzk/__main__.py b/tzk/__main__.py index bd334a9..ddfa002 100644 --- a/tzk/__main__.py +++ b/tzk/__main__.py @@ -83,6 +83,12 @@ class ListenCommand(CliCommand): @classmethod def setup_arguments(cls, parser: argparse.ArgumentParser) -> None: + parser.add_argument( + "-h", "--host", + metavar="HOST", + help="Host to listen on.", + default=str(cm().listen_host or "127.0.0.1"), + ) parser.add_argument( "-p", "--port", metavar="PORT", @@ -109,6 +115,7 @@ class ListenCommand(CliCommand): tw.exec( [ ("listen", + f"host={args.host}", f"port={args.port}", f"username={args.username}", f"password={args.password}")