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,