diff options
| author | bors <bors@rust-lang.org> | 2013-08-23 01:31:26 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-23 01:31:26 -0700 |
| commit | db55cd92dec88c3ff025ecf8b4900aca4520bea6 (patch) | |
| tree | 4f5c19f1ed56124393012cf73bae99e2e2612e1d /src/librustpkg | |
| parent | 5e5e2c71e403371ff8a5d5430e7696654214a438 (diff) | |
| parent | 77df8b809a3927ffcdd2c43d48783c97a25712a8 (diff) | |
auto merge of #8681 : mrordinaire/rust/remove-set_args, r=brson
Diffstat (limited to 'src/librustpkg')
| -rw-r--r-- | src/librustpkg/rustpkg.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustpkg/rustpkg.rs b/src/librustpkg/rustpkg.rs index 198cad90166..f5dc17851e5 100644 --- a/src/librustpkg/rustpkg.rs +++ b/src/librustpkg/rustpkg.rs @@ -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")]; |
