Skip to content

Commit

Permalink
Add long options for viewers (#10787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Oct 20, 2023
1 parent 7caf27b commit 878f0cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/nu-command/src/viewers/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Command for Table {
vec![
Example {
description: "List the files in current directory, with indexes starting from 1.",
example: r#"ls | table -n 1"#,
example: r#"ls | table --start-number 1"#,
result: None,
},
Example {
Expand Down
4 changes: 2 additions & 2 deletions crates/nu-explore/src/explore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 -i"#,
example: r#"glob *.md | each {|| open } | explore --index"#,
result: None,
},
Example {
description:
"Explore a JSON file, then save the last visited sub-structure to a file",
example: r#"open file.json | explore -p | to json | save part.json"#,
example: r#"open file.json | explore --peek | to json | save part.json"#,
result: None,
},
]
Expand Down

0 comments on commit 878f0cf

Please sign in to comment.