extern crate sql_lexer;
use std::env;
use std::fs::File;
use std::io::prelude::*;
use sql_lexer::*;
fn main() {
match env::args().nth(1) {
Some(arg) => {
let mut file = File::open(arg.as_str()).unwrap();
let mut contents = String::new();
file.read_to_string(&mut contents).unwrap();
println!("{}", sanitize_string(contents));
}
None => println!("Please supply a path to a file containing SQL"),
}
}