Compare commits
3 Commits
77886cb1c6
...
92baf351a5
Author | SHA1 | Date | |
---|---|---|---|
92baf351a5 | |||
9e7c2c5a49 | |||
f598c3056d |
@ -83,6 +83,12 @@ class ListenCommand(CliCommand):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setup_arguments(cls, parser: argparse.ArgumentParser) -> None:
|
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(
|
parser.add_argument(
|
||||||
"-p", "--port",
|
"-p", "--port",
|
||||||
metavar="PORT",
|
metavar="PORT",
|
||||||
@ -109,6 +115,7 @@ class ListenCommand(CliCommand):
|
|||||||
tw.exec(
|
tw.exec(
|
||||||
[
|
[
|
||||||
("listen",
|
("listen",
|
||||||
|
f"host={args.host}",
|
||||||
f"port={args.port}",
|
f"port={args.port}",
|
||||||
f"username={args.username}",
|
f"username={args.username}",
|
||||||
f"password={args.password}")
|
f"password={args.password}")
|
||||||
|
Loading…
Reference in New Issue
Block a user