@@ -2,18 +2,18 @@ use getopts::Options;
22
33#[ derive( Debug ) ]
44pub struct Config {
5- /// The directory documentation output was generated in
5+ /// The directory documentation output was generated in.
66 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.
88 pub template : String ,
99}
1010
11- /// Create a Config from a vector of command-line arguments
11+ /// Create a Config from a vector of command-line arguments.
1212pub fn parse_config ( args : Vec < String > ) -> Config {
1313 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. " ) ;
1717
1818 let ( argv0, args_) = args. split_first ( ) . unwrap ( ) ;
1919 if args. len ( ) == 1 {
0 commit comments