blob: 401bbe48f1ae2e908ade700d9ee7f98dcf31fec5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use std::fs::File;
use std::io::BufReader;
extern crate clap;
use clap::{load_yaml, App};
mod parser;
use parser::*;
fn main() {
let yaml = load_yaml!("cli/ru.yml");
let matches = App::from_yaml(yaml).get_matches();
let path = matches.value_of("FILE").unwrap();
let file: File = File::open(path).unwrap();
let data: ParserResult = parse(BufReader::new(file));
dbg!(data.meeting_name);
}
|