#![feature(globs)]

extern crate rdb;
use std::os;
use std::io::{BufferedReader, File};

pub fn main() {
    let args = os::args();
    if args.len() == 1 {
        println!("Usage: {} [list of files]", args[0]);
        panic!();
    }

    let file = File::open(&Path::new(args[1].to_string()));
    let mut reader = BufferedReader::new(file);

    rdb::parse(&mut reader)
}

#![feature(globs)]

extern crate rdb;
use std::os;
use std::io::{BufferedReader, File};

fn main() {
    let args = os::args();
    if args.len() == 1 {
        println!("Usage: {} [list of files]", args[0]);
        panic!();
    }

    let file = File::open(&Path::new(args[1].to_string()));
    let mut reader = BufferedReader::new(file);

    rdb::parse(&mut reader)
}

--- 
+++ 
@@ -4,7 +4,7 @@
 use std::os;
 use std::io::{BufferedReader, File};
 
-fn main() {
+pub fn main() {
     let args = os::args();
     if args.len() == 1 {
         println!("Usage: {} [list of files]", args[0]);
Make it public to avoid warnings
