mirror of
https://github.com/nushell/nushell.git
synced 2025-07-19 07:33:17 +02:00
#15499 reminds me of the discrepancies between lsp hover docs and `--help` outputs. # Description # User-Facing Changes Before: <img width="610" alt="image" src="https://github.com/user-attachments/assets/f73f7ace-5c1b-4380-9921-fb4783bdb187" /> After: <img width="610" alt="image" src="https://github.com/user-attachments/assets/96de3ffe-e37b-41b1-88bb-123eeb72ced2" /> Output of `if -h` as a reference: ``` Usage: > if <cond> <then_block> (else <else_expression>) Flags: -h, --help: Display the help message for this command Parameters: cond <variable>: Condition to check. then_block <block>: Block to run if check succeeds. "else" + <one_of(block, expression)>: Expression or block to run when the condition is false. (optional) ``` # Tests + Formatting Refined # After Submitting
18 lines
204 B
Plaintext
18 lines
204 B
Plaintext
str substring ..2 -g foo bar b
|
|
(
|
|
# inside parenthesis
|
|
str substring
|
|
..2 -b
|
|
foo
|
|
b
|
|
|
|
)
|
|
foo bar 1 2 3
|
|
foo baz 1 2 3
|
|
def "foo baz" [
|
|
p1: int
|
|
p2: string, # doc
|
|
p3?: int = 1
|
|
] {}
|
|
echo
|