diff --git a/crates/nu-command/src/viewers/table.rs b/crates/nu-command/src/viewers/table.rs index 50acfa2d13..16b387f883 100644 --- a/crates/nu-command/src/viewers/table.rs +++ b/crates/nu-command/src/viewers/table.rs @@ -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 { diff --git a/crates/nu-explore/src/explore.rs b/crates/nu-explore/src/explore.rs index e8f5ac6de7..ade3ee42e7 100644 --- a/crates/nu-explore/src/explore.rs +++ b/crates/nu-explore/src/explore.rs @@ -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, }, ]