From b3665c287dd49e973434d650ebd39708f4fd5469 Mon Sep 17 00:00:00 2001 From: Matt Ickstadt Date: Wed, 1 Aug 2018 17:59:40 -0500 Subject: [PATCH] Add directory argument to `mdbook test` --- src/cmd/test.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cmd/test.rs b/src/cmd/test.rs index 60db7ab7..8409590a 100644 --- a/src/cmd/test.rs +++ b/src/cmd/test.rs @@ -7,7 +7,10 @@ use mdbook::MDBook; pub fn make_subcommand<'a, 'b>() -> App<'a, 'b> { SubCommand::with_name("test") .about("Test that code samples compile") - .arg_from_usage("-L, --library-path [DIR]... 'directory to add to crate search path'") + .arg_from_usage("-L, --library-path [DIR]... 'directories to add to crate search path'") + .arg_from_usage( + "[dir] 'A directory for your book{n}(Defaults to Current Directory when omitted)'", + ) } // test command implementation