Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d585e7f

Browse files
PeterKnealeclaude
andauthored
fix: show descriptions for the assert and run subcommands in --help (#65)
The assert and run subcommands rendered with blank descriptions in `bioassert --help` because their Commands enum variants had no doc comment, unlike suggest. Add `///` doc comments matching the README wording so all subcommands describe themselves. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent 5de4565 commit d585e7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cli.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ impl When {
7979

8080
#[derive(Subcommand)]
8181
pub enum Commands {
82-
Assert {
83-
assertion: String,
84-
},
82+
/// Evaluate a single assertion passed as one quoted string.
83+
Assert { assertion: String },
84+
/// Evaluate every assertion in a file (defaults to assertions.txt).
8585
Run {
8686
#[arg(
8787
default_value = "assertions.txt",

0 commit comments

Comments
 (0)