From 60e0127dfb34f3be8048253730152814d6f52dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 5 Mar 2025 18:30:31 +0100 Subject: [PATCH] Document that subcommand help exists (#3218) --- xtask/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xtask/README.md b/xtask/README.md index 128b7a769..5d44320ec 100644 --- a/xtask/README.md +++ b/xtask/README.md @@ -26,6 +26,19 @@ Options: -h, --help Print help ``` +You can get help for subcommands, too! + +```text +cargo xtask build-examples --help + Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s + Running `target\debug\xtask.exe build-examples --help` +Build all examples for the specified chip + +Usage: xtask.exe build-examples [OPTIONS] [EXAMPLE] + +... +``` + ## Test/example metadata use Each test and example can specify metadata. This metadata is read, interpreted and used by the