mirror of
https://github.com/nushell/nushell.git
synced 2025-05-07 11:34:26 +02:00
doc: clarify trailing line ending in 'to json -r' documentation (#15234)
# Description Fixes issue #15215 # User-Facing Changes Change in help msg in "to json" command with -r flag # Tests + Formatting cargo fmt 🆗 # After Submitting Doc for that is generated from code I think, so 🆗
This commit is contained in:
parent
fc72aa6abe
commit
9eaa8908d2
@ -12,7 +12,11 @@ impl Command for ToJson {
|
|||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build("to json")
|
Signature::build("to json")
|
||||||
.input_output_types(vec![(Type::Any, Type::String)])
|
.input_output_types(vec![(Type::Any, Type::String)])
|
||||||
.switch("raw", "remove all of the whitespace", Some('r'))
|
.switch(
|
||||||
|
"raw",
|
||||||
|
"remove all of the whitespace and trailing line ending",
|
||||||
|
Some('r'),
|
||||||
|
)
|
||||||
.named(
|
.named(
|
||||||
"indent",
|
"indent",
|
||||||
SyntaxShape::Number,
|
SyntaxShape::Number,
|
||||||
|
Loading…
Reference in New Issue
Block a user