File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,17 @@ fn main() {
12
12
let crate_version = format ! ( "v{}" , crate_version!( ) ) ;
13
13
env_logger:: Builder :: from_env ( env_logger:: Env :: default ( ) . default_filter_or ( "warn" ) ) . init ( ) ;
14
14
let d_arg = arg ! ( -d --"dest-dir" <DEST_DIR >
15
- "The output directory for your book{n}(Defaults to ./book when omitted)" ) ;
15
+ "The output directory for your book\n (Defaults to ./book when omitted)" )
16
+ . required ( false ) ;
16
17
let dir_arg = arg ! ( [ dir]
17
- "A directory for your book{n} (Defaults to Current Directory when omitted)" ) ;
18
+ "A directory for your book\n (Defaults to Current Directory when omitted)" ) ;
18
19
19
20
let matches = Command :: new ( "rustbook" )
20
21
. about ( "Build a book with mdBook" )
21
22
. author ( "Steve Klabnik <[email protected] >" )
22
23
. version ( & * crate_version)
23
24
. subcommand_required ( true )
25
+ . arg_required_else_help ( true )
24
26
. subcommand (
25
27
Command :: new ( "build" )
26
28
. about ( "Build the book from the markdown files" )
You can’t perform that action at this time.
0 commit comments