diff options
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs index ce89c23c..3594be4e 100644 --- a/src/options.rs +++ b/src/options.rs @@ -78,6 +78,13 @@ where .takes_value(true) .multiple(true) .number_of_values(1), + Arg::with_name("blacklist-item") + .long("blacklist-item") + .help("Mark <item> as hidden.") + .value_name("item") + .takes_value(true) + .multiple(true) + .number_of_values(1), Arg::with_name("no-layout-tests") .long("no-layout-tests") .help("Avoid generating layout tests for any type."), @@ -370,6 +377,12 @@ where } } + if let Some(hidden_identifiers) = matches.values_of("blacklist-item") { + for id in hidden_identifiers { + builder = builder.blacklist_item(id); + } + } + if matches.is_present("builtins") { builder = builder.emit_builtins(); } |