// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![crate_id = "rustdoc#0.10"]
+#![crate_id = "rustdoc#0.11-pre"]
#![desc = "rustdoc, the Rust documentation extractor"]
#![license = "MIT/ASL2"]
#![crate_type = "dylib"]
let markdown_input = input.ends_with(".md") || input.ends_with(".markdown");
let output = matches.opt_str("o").map(|s| Path::new(s));
+ let cfgs = matches.opt_strs("cfg");
match (should_test, markdown_input) {
(true, true) => {
libs,
test_args.move_iter().collect())
}
- (true, false) => return test::run(input, libs, test_args),
+ (true, false) => return test::run(input, cfgs.move_iter().collect(),
+ libs, test_args),
(false, true) => return markdown::render(input, output.unwrap_or(Path::new("doc")),
&matches),