Skip to content

Commit 8cff8de

Browse files
author
liv
committed
add more detailed command help
1 parent 63c50a3 commit 8cff8de

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ mod verify;
1818
fn main() {
1919
let matches = App::new("rustlings")
2020
.version(crate_version!())
21-
.author("Olivia Hugger")
22-
.about("Test")
23-
.subcommand(SubCommand::with_name("verify").alias("v"))
24-
.subcommand(SubCommand::with_name("watch").alias("w"))
21+
.author("Olivia Hugger, Carol Nichols")
22+
.about("Rustlings is a collection of small exercises to get you used to writing and reading Rust code")
23+
.subcommand(SubCommand::with_name("verify").alias("v").about("Verifies all exercises according to the recommended order"))
24+
.subcommand(SubCommand::with_name("watch").alias("w").about("Reruns `verify` when files were edited"))
2525
.subcommand(
2626
SubCommand::with_name("run")
2727
.alias("r")
28+
.about("Runs/Tests a single exercise")
2829
.arg(Arg::with_name("file").required(true).index(1))
29-
.arg(Arg::with_name("test").short("t").long("test")),
30+
.arg(Arg::with_name("test").short("t").long("test").help("Run the file as a test")),
3031
)
3132
.get_matches();
3233

0 commit comments

Comments
 (0)