Skip to content

Commit

Permalink
docs: document default port
Browse files Browse the repository at this point in the history
  • Loading branch information
llllvvuu authored and michprev committed Jul 18, 2023
1 parent d2aa29a commit b1c8e9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Woke LSP server can be run using:
woke lsp
```

Or with an optional --port argument:
Or with an optional --port argument (default 65432):

```shell
woke lsp --port 1234
Expand Down
4 changes: 2 additions & 2 deletions docs/language-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Woke LSP server can be run using:
woke lsp
```

Or with an optional `--port` argument:
Or with an optional `--port` argument (default 65432):
```shell
woke lsp --port 1234
```
Expand Down Expand Up @@ -109,4 +109,4 @@ Together with compiler errors, diagnostics also include results from Woke vulner
Woke LSP server can be debugged using:
```shell
woke --debug lsp
```
```
8 changes: 7 additions & 1 deletion woke/cli/lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ async def client_callback(


@click.command(name="lsp")
@click.option("--port", default=65432, type=int, help="Port to listen on.")
@click.option(
"--port",
default=65432,
type=int,
help="Port to listen on.",
show_default=True,
)
@click.pass_context
def run_lsp(context: click.Context, port: int):
"""
Expand Down

0 comments on commit b1c8e9a

Please sign in to comment.