#![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)
}

#![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)
}

Make it public to avoid warnings
Make it public to avoid warnings
