Skip to content

Commit 3dafd0e

Browse files
committed
add examples to --help
1 parent 7802429 commit 3dafd0e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ fn get_commits(start: &str, end: &str) -> Result<Vec<git::Commit>, Error> {
7373
}
7474

7575
#[derive(Debug, StructOpt)]
76+
#[structopt(after_help = "EXAMPLES:
77+
Run a fully automatic nightly bisect doing `cargo check`:
78+
```
79+
cargo bisect-rustc --start 2018-07-07 --end 2018-07-30 --test-dir ../my_project/ -- check
80+
```
81+
82+
Run a PR-based bisect with manual prompts after each run doing `cargo build`:
83+
```
84+
cargo bisect-rustc --start 6a1c0637ce44aeea6c60527f4c0e7fb33f2bcd0d \\
85+
--end 866a713258915e6cbb212d135f751a6a8c9e1c0a --test-dir ../my_project/ --prompt -- build
86+
```")]
7687
struct Opts {
7788
#[structopt(
7889
short = "a", long = "alt", help = "Download the alt build instead of normal build"

0 commit comments

Comments
 (0)