@@ -280,12 +280,12 @@ impl Options {
280
280
// check for deprecated options
281
281
check_deprecated_options ( & matches, & diag) ;
282
282
283
- let to_check = matches. opt_strs ( "check-themes " ) ;
283
+ let to_check = matches. opt_strs ( "check-theme " ) ;
284
284
if !to_check. is_empty ( ) {
285
285
let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
286
286
let mut errors = 0 ;
287
287
288
- println ! ( "rustdoc: [check-themes ] Starting tests! (Ignoring all other arguments)" ) ;
288
+ println ! ( "rustdoc: [check-theme ] Starting tests! (Ignoring all other arguments)" ) ;
289
289
for theme_file in to_check. iter ( ) {
290
290
print ! ( " - Checking \" {}\" ..." , theme_file) ;
291
291
let ( success, differences) = theme:: test_theme_against ( theme_file, & paths, & diag) ;
@@ -360,15 +360,15 @@ impl Options {
360
360
}
361
361
362
362
let mut themes = Vec :: new ( ) ;
363
- if matches. opt_present ( "themes " ) {
363
+ if matches. opt_present ( "theme " ) {
364
364
let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
365
365
366
- for ( theme_file, theme_s) in matches. opt_strs ( "themes " )
366
+ for ( theme_file, theme_s) in matches. opt_strs ( "theme " )
367
367
. iter ( )
368
368
. map ( |s| ( PathBuf :: from ( & s) , s. to_owned ( ) ) ) {
369
369
if !theme_file. is_file ( ) {
370
370
diag. struct_err ( & format ! ( "invalid file: \" {}\" " , theme_s) )
371
- . help ( "option --themes arguments must all be files" )
371
+ . help ( "option --theme arguments must all be files" )
372
372
. emit ( ) ;
373
373
return Err ( 1 ) ;
374
374
}
@@ -386,7 +386,7 @@ impl Options {
386
386
default theme", theme_s) )
387
387
. warn ( "the theme may appear incorrect when loaded" )
388
388
. help ( & format ! ( "to see what rules are missing, call `rustdoc \
389
- --check-themes \" {}\" `", theme_s) )
389
+ --check-theme \" {}\" `", theme_s) )
390
390
. emit ( ) ;
391
391
}
392
392
themes. push ( theme_file) ;
0 commit comments