Document that subcommand help exists (#3218)

This commit is contained in:
Dániel Buga 2025-03-05 18:30:31 +01:00 committed by GitHub
parent ef1b3cf794
commit 60e0127dfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,19 @@ Options:
-h, --help Print help -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] <PACKAGE> <CHIP> [EXAMPLE]
...
```
## Test/example metadata use ## Test/example metadata use
Each test and example can specify metadata. This metadata is read, interpreted and used by the Each test and example can specify metadata. This metadata is read, interpreted and used by the