From 49f8a2941dc7505b5c8e8547954c32b2ef831ebd Mon Sep 17 00:00:00 2001 From: Samuel Chase Date: Fri, 27 Jun 2014 16:13:55 +0530 Subject: [PATCH 1/2] Add command line help text for new subcommand 'cargo test' --- src/bin/cargo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index d8427326e7a..6bafc01fa7b 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -50,6 +50,7 @@ fn execute() { "--help" | "-h" | "help" | "-?" => { println!("Commands:"); println!(" build # compile the current project\n"); + println!(" test # run the tests\n"); let (_, options) = hammer::usage::(false); println!("Options (for all commands):\n\n{}", options); From 2f89c7869734e20479d723202ef9069ff09b07a0 Mon Sep 17 00:00:00 2001 From: Samuel Chase Date: Fri, 27 Jun 2014 16:17:34 +0530 Subject: [PATCH 2/2] Remove superfluous newline --- src/bin/cargo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 6bafc01fa7b..454e84e6b21 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -49,7 +49,7 @@ fn execute() { }, "--help" | "-h" | "help" | "-?" => { println!("Commands:"); - println!(" build # compile the current project\n"); + println!(" build # compile the current project"); println!(" test # run the tests\n"); let (_, options) = hammer::usage::(false);