diff options
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")]; |
