Align command line examples in "cargo help test"
authorMartin Geisler <martin@geisler.net>
Sun, 29 Oct 2017 12:21:53 +0000 (13:21 +0100)
committerMartin Geisler <martin@geisler.net>
Sun, 29 Oct 2017 12:21:53 +0000 (13:21 +0100)
The initial example used an indentation of four spaces, the other
examples used only two spaces. They now all use four spaces.

I checked all other Cargo commands and found no other such problems.

src/bin/test.rs

index 2208a18afdd6f50dded99f084046eb52bef048a1..a663e06091b03893c37b735db72d40cb7aa36400 100644 (file)
@@ -101,7 +101,7 @@ for the --jobs argument is the number of CPUs. If you want to control the
 number of simultaneous running test cases, pass the `--test-threads` option
 to the test binaries:
 
-  cargo test -- --test-threads=1
+    cargo test -- --test-threads=1
 
 Compilation can be configured via the `test` profile in the manifest.
 
@@ -109,11 +109,11 @@ By default the rust test harness hides output from test execution to
 keep results readable. Test output can be recovered (e.g. for debugging)
 by passing `--nocapture` to the test binaries:
 
-  cargo test -- --nocapture
+    cargo test -- --nocapture
 
 To get the list of all options available for the test binaries use this:
 
-  cargo test -- --help
+    cargo test -- --help
 ";
 
 pub fn execute(options: Options, config: &mut Config) -> CliResult {