Skip to content

Commit 82872ad

Browse files
Add sentence to tell other options are ignored when running check-theme
1 parent e365120 commit 82872ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ impl Options {
281281
// check for deprecated options
282282
check_deprecated_options(&matches, &diag);
283283

284-
let to_check = matches.opt_strs("theme-checker");
284+
let to_check = matches.opt_strs("check-theme");
285285
if !to_check.is_empty() {
286286
let paths = theme::load_css_paths(static_files::themes::LIGHT.as_bytes());
287287
let mut errors = 0;
288288

289-
println!("rustdoc: [theme-checker] Starting tests!");
289+
println!("rustdoc: [check-theme] Starting tests! (Ignoring all other arguments)");
290290
for theme_file in to_check.iter() {
291291
print!(" - Checking \"{}\"...", theme_file);
292292
let (success, differences) = theme::test_theme_against(theme_file, &paths, &diag);
@@ -378,7 +378,7 @@ impl Options {
378378
default theme", theme_s))
379379
.warn("the theme may appear incorrect when loaded")
380380
.help(&format!("to see what rules are missing, call `rustdoc \
381-
--theme-checker \"{}\"`", theme_s))
381+
--check-theme \"{}\"`", theme_s))
382382
.emit();
383383
}
384384
themes.push(theme_file);

0 commit comments

Comments
 (0)