Documentation for --port=0

pull/546/merge
Simon Willison 2019-12-22 15:42:30 +00:00
rodzic 85c19c4037
commit ceef5ce684
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -239,7 +239,12 @@ def package(
"all IPs and allow access from other machines."
),
)
@click.option("-p", "--port", default=8001, help="Port for server, defaults to 8001")
@click.option(
"-p",
"--port",
default=8001,
help="Port for server, defaults to 8001. Use -p 0 to automatically assign an available port.",
)
@click.option(
"--debug", is_flag=True, help="Enable debug mode - useful for development"
)

Wyświetl plik

@ -10,7 +10,8 @@ Options:
connections from the local machine will be allowed. Use
0.0.0.0 to listen to all IPs and allow access from other
machines.
-p, --port INTEGER Port for server, defaults to 8001
-p, --port INTEGER Port for server, defaults to 8001. Use -p 0 to automatically
assign an available port.
--debug Enable debug mode - useful for development
--reload Automatically reload if database or code change detected -
useful for development