mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 14:28:11 +02:00
Revert "Port command examples to long option" (#10597)
Reverts nushell/nushell#10596 Using the long option in examples is going to be confusing as it makes the reader think the long option is required. It also isn't idiomatic Nushell. The examples should be copy-paste-able as idiomatic Nushell, so as such we shouldn't expand them to the long flag name.
This commit is contained in:
@ -113,13 +113,13 @@ impl Command for Explore {
|
||||
},
|
||||
Example {
|
||||
description: "Explore a list of Markdown files' contents, with row indexes",
|
||||
example: r#"glob *.md | each {|| open } | explore --index"#,
|
||||
example: r#"glob *.md | each {|| open } | explore -i"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description:
|
||||
"Explore a JSON file, then save the last visited sub-structure to a file",
|
||||
example: r#"open file.json | explore --peek | to json | save part.json"#,
|
||||
example: r#"open file.json | explore -p | to json | save part.json"#,
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user