From 5e32dd48f704f80c4734e29f273ee4d15a29e40b Mon Sep 17 00:00:00 2001 From: Greg Miller Date: Sun, 26 Apr 2026 16:10:59 -0400 Subject: [PATCH] Bump version to 0.2.1 - fix --help formatting Use clap's verbatim_doc_comment so the doc comment on Args is preserved verbatim in --help output. Without it, clap fold-wraps multiple lines into a single paragraph and strips indentation, mangling the example section. --- Cargo.toml | 2 +- src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 75389c4..b20aac3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sumcol" -version = "0.2.0" +version = "0.2.1" edition = "2021" license = "MIT OR Apache-2.0" description = "A command-line tool to sum a column of numbers." diff --git a/src/main.rs b/src/main.rs index 0c8128c..490acf4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,10 +18,10 @@ enum Radix { /// Sum a column of numbers from text input. /// /// Examples: -/// ls -l | sumcol -f 5 -/// sumcol -f 3 -d : /etc/passwd +/// ls -l | sumcol -f5 +/// #[derive(Parser, Debug)] -#[command(version, about)] +#[command(version, verbatim_doc_comment)] struct Args { /// The field to sum. If not specified, uses the full line. #[arg(long, short, default_value("0"))]