From 779d61394139fadbb43f04d087e750efcacc7f4e Mon Sep 17 00:00:00 2001 From: Daniel Jalkut Date: Fri, 18 Apr 2025 23:45:52 -0400 Subject: [PATCH] docs(cli): improve documentation for the `edits` argument when parsing code (cherry picked from commit 4514751803ad5de4fa8a77e6a7ba733e702eaa17) --- cli/src/main.rs | 3 ++- docs/src/cli/parse.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 7ddc8dcb..ae9be31b 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -206,7 +206,8 @@ struct Parse { #[arg(long, short)] pub quiet: bool, #[allow(clippy::doc_markdown)] - /// Apply edits in the format: \"row, col delcount insert_text\" + /// Apply edits in the format: \"row,col|position delcount insert_text\", can be supplied + /// multiple times #[arg( long, num_args = 1.., diff --git a/docs/src/cli/parse.md b/docs/src/cli/parse.md index 7f30cdb0..97c6422a 100644 --- a/docs/src/cli/parse.md +++ b/docs/src/cli/parse.md @@ -66,7 +66,7 @@ Suppress main output. ### `--edits ...` -Apply edits after parsing the file. Edits are in the form of `row, col delcount insert_text` where row and col are 0-indexed. +Apply edits after parsing the file. Edits are in the form of `row,col|position delcount insert_text` where row and col, or position are 0-indexed. ### `--encoding `