From a56b537ba440c733d4f37d6e7ce93e5ebaa3b156 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Thu, 4 Sep 2025 12:22:14 -0600 Subject: [PATCH] better command-line argument help --- tools/src/bin/parser/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/src/bin/parser/main.rs b/tools/src/bin/parser/main.rs index 7ed5234..ef0ca9c 100644 --- a/tools/src/bin/parser/main.rs +++ b/tools/src/bin/parser/main.rs @@ -3,7 +3,7 @@ use clap::Parser; #[derive(Debug, clap::Parser)] #[command(version, about, long_about = None)] struct Args { - /// Directories containing repos. + /// Directories containing repos, eg "../my-repos". #[arg(short, long)] repo: Vec, @@ -14,12 +14,14 @@ struct Args { #[derive(clap::Subcommand, Debug)] enum Commands { + /// Produce an mdbook of the specified recipe. Mdbook { - /// The name of the recipe to create MD Book for. + /// The name of the recipe to create MD Book for, eg "my_widget". target: String, }, + /// Show parsed recipe, probably not very useful. Info { - /// The name of the recipe to show info for. + /// The name of the recipe to show info for, eg "my_widget". target: String, }, }