Skip to content

Commit b6972fe

Browse files
authored
Merge pull request #1 from lsp-client/fix-help-truncation
feat: disable help message truncation in CLI
2 parents 8f3cf87 + 5e343b3 commit b6972fe

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/lsp_cli/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@
3838
help="LSP CLI: A command-line tool for interacting with Language Server Protocol (LSP) features.",
3939
add_completion=False,
4040
rich_markup_mode=None,
41-
context_settings={"help_option_names": ["-h", "--help"]},
41+
context_settings={
42+
"help_option_names": ["-h", "--help"],
43+
"max_content_width": 1000,
44+
"terminal_width": 1000,
45+
},
4246
pretty_exceptions_enable=False,
4347
pretty_exceptions_show_locals=False,
4448
pretty_exceptions_short=False,

src/lsp_cli/server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
help="Manage background LSP server processes.",
1212
add_completion=False,
1313
rich_markup_mode=None,
14-
context_settings={"help_option_names": ["-h", "--help"]},
14+
context_settings={
15+
"help_option_names": ["-h", "--help"],
16+
"max_content_width": 1000,
17+
"terminal_width": 1000,
18+
},
1519
)
1620
console = Console()
1721

0 commit comments

Comments
 (0)