mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
add more detailed command help
This commit is contained in:
parent
63c50a3453
commit
8cff8de493
1 changed files with 6 additions and 5 deletions
11
src/main.rs
11
src/main.rs
|
@ -18,15 +18,16 @@ mod verify;
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = App::new("rustlings")
|
let matches = App::new("rustlings")
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.author("Olivia Hugger")
|
.author("Olivia Hugger, Carol Nichols")
|
||||||
.about("Test")
|
.about("Rustlings is a collection of small exercises to get you used to writing and reading Rust code")
|
||||||
.subcommand(SubCommand::with_name("verify").alias("v"))
|
.subcommand(SubCommand::with_name("verify").alias("v").about("Verifies all exercises according to the recommended order"))
|
||||||
.subcommand(SubCommand::with_name("watch").alias("w"))
|
.subcommand(SubCommand::with_name("watch").alias("w").about("Reruns `verify` when files were edited"))
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("run")
|
SubCommand::with_name("run")
|
||||||
.alias("r")
|
.alias("r")
|
||||||
|
.about("Runs/Tests a single exercise")
|
||||||
.arg(Arg::with_name("file").required(true).index(1))
|
.arg(Arg::with_name("file").required(true).index(1))
|
||||||
.arg(Arg::with_name("test").short("t").long("test")),
|
.arg(Arg::with_name("test").short("t").long("test").help("Run the file as a test")),
|
||||||
)
|
)
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue