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:
Loïc Riegel 2025-03-03 23:49:29 +01:00 committed by GitHub
parent fc72aa6abe
commit 9eaa8908d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,11 @@ impl Command for ToJson {
fn signature(&self) -> Signature {
Signature::build("to json")
.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(
"indent",
SyntaxShape::Number,