Move getopts out of extra

This commit is contained in:
Arcterus 2014-02-02 15:20:32 -08:00
parent f039d10cf7
commit 9752c63035
13 changed files with 43 additions and 34 deletions

View file

@ -20,16 +20,16 @@ extern mod rustc;
extern mod extra;
extern mod serialize;
extern mod sync;
extern mod getopts;
use std::local_data;
use std::io;
use std::io::{File, MemWriter};
use std::str;
use extra::getopts;
use extra::getopts::groups;
use extra::json;
use serialize::{Decodable, Encodable};
use extra::time;
use getopts::groups;
pub mod clean;
pub mod core;
@ -81,7 +81,7 @@ pub fn main() {
}
pub fn opts() -> ~[groups::OptGroup] {
use extra::getopts::groups::*;
use getopts::groups::*;
~[
optflag("h", "help", "show this help message"),
optflag("", "version", "print rustdoc's version"),

View file

@ -16,11 +16,11 @@ use std::run;
use std::str;
use extra::tempfile::TempDir;
use extra::getopts;
use extra::test;
use rustc::driver::driver;
use rustc::driver::session;
use rustc::metadata::creader::Loader;
use getopts;
use syntax::diagnostic;
use syntax::parse;