docs(cli): improve documentation for the edits argument when parsing code

(cherry picked from commit 4514751803)
This commit is contained in:
Daniel Jalkut 2025-04-18 23:45:52 -04:00 committed by Christian Clason
parent 0d360a1831
commit 779d613941
2 changed files with 3 additions and 2 deletions

View file

@ -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..,

View file

@ -66,7 +66,7 @@ Suppress main output.
### `--edits <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 <ENCODING>`