auto merge of #8681 : mrordinaire/rust/remove-set_args, r=brson

This commit is contained in:
bors 2013-08-23 01:31:26 -07:00
commit db55cd92de
6 changed files with 35 additions and 40 deletions

View file

@ -466,8 +466,11 @@ impl CtxMethods for Ctx {
pub fn main() {
io::println("WARNING: The Rust package manager is experimental and may be unstable");
let args = os::args();
main_args(args);
}
pub fn main_args(args: &[~str]) {
let opts = ~[getopts::optflag("h"), getopts::optflag("help"),
getopts::optflag("j"), getopts::optflag("json"),
getopts::optmulti("c"), getopts::optmulti("cfg")];