Skip to content

Commit 60e0127

Browse files
authored
Document that subcommand help exists (#3218)
1 parent ef1b3cf commit 60e0127

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

xtask/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ Options:
2626
-h, --help Print help
2727
```
2828

29+
You can get help for subcommands, too!
30+
31+
```text
32+
cargo xtask build-examples --help
33+
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s
34+
Running `target\debug\xtask.exe build-examples --help`
35+
Build all examples for the specified chip
36+
37+
Usage: xtask.exe build-examples [OPTIONS] <PACKAGE> <CHIP> [EXAMPLE]
38+
39+
...
40+
```
41+
2942
## Test/example metadata use
3043

3144
Each test and example can specify metadata. This metadata is read, interpreted and used by the

0 commit comments

Comments
 (0)