@@ -2,18 +2,18 @@ use getopts::Options;
2
2
3
3
#[ derive( Debug ) ]
4
4
pub struct Config {
5
- /// The directory documentation output was generated in
5
+ /// The directory documentation output was generated in.
6
6
pub doc_dir : String ,
7
- /// The file documentation was generated for, with docck directives to check
7
+ /// The file documentation was generated for, with docck directives to check.
8
8
pub template : String ,
9
9
}
10
10
11
- /// Create a Config from a vector of command-line arguments
11
+ /// Create a Config from a vector of command-line arguments.
12
12
pub fn parse_config ( args : Vec < String > ) -> Config {
13
13
let mut opts = Options :: new ( ) ;
14
- opts. reqopt ( "" , "doc-dir" , "Path to the documentation directory" , "PATH" )
15
- . reqopt ( "" , "template" , "Path to the template file" , "PATH" )
16
- . optflag ( "h" , "help" , "show this message" ) ;
14
+ opts. reqopt ( "" , "doc-dir" , "Path to the documentation directory. " , "PATH" )
15
+ . reqopt ( "" , "template" , "Path to the template file. " , "PATH" )
16
+ . optflag ( "h" , "help" , "Show this message. " ) ;
17
17
18
18
let ( argv0, args_) = args. split_first ( ) . unwrap ( ) ;
19
19
if args. len ( ) == 1 {
0 commit comments