From f950cb6b38cbe2c22ad9c3f09366d6fce2b7618a Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Thu, 18 Jun 2026 18:45:35 -0500 Subject: [PATCH] Add help for -b flag --- src/lib.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 65f200c..94c9b4c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,12 @@ enum Commands { help = "Open $EDITOR before saving the new task" )] edit: bool, - #[arg(short = 'b')] + /// Set the task body. Use `-b -` to read the body from stdin. + #[arg( + short = 'b', + value_name = "BODY", + help = "Set the task body. Use `-b -` to read stdin" + )] body: Option, #[command(flatten)] title: Title, @@ -78,7 +83,12 @@ enum Commands { help = "Open $EDITOR before saving the new task" )] edit: bool, - #[arg(short = 'b')] + /// Set the task body. Use `-b -` to read the body from stdin. + #[arg( + short = 'b', + value_name = "BODY", + help = "Set the task body. Use `-b -` to read stdin" + )] body: Option, #[command(flatten)] title: Title, -- knotmirror 0.0.1