aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTill Hoeppner2015-04-01 23:29:45 +0200
committerTill Hoeppner2015-04-01 23:29:45 +0200
commita02f3c09482807220c5642b0e03d8f2d8aea243a (patch)
tree19a8a91aabb11755b99520cbe7689cbb8b6f8ad5 /src/main.rs
parentbead9324f053957f73042b1e33905aaa73b57649 (diff)
downloadilc-a02f3c09482807220c5642b0e03d8f2d8aea243a.tar.gz
ilc-a02f3c09482807220c5642b0e03d8f2d8aea243a.tar.xz
ilc-a02f3c09482807220c5642b0e03d8f2d8aea243a.zip
Don't match with regex anymore
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index b5f65a9..4bf22f7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,7 @@
extern crate ilc;
extern crate docopt;
-extern crate "rustc-serialize" as rustc_serialize;
+extern crate rustc_serialize;
extern crate libc;
extern crate regex;
@@ -14,16 +14,26 @@ use docopt::Docopt;
use ilc::format::{ self, Encode, Decode };
-static USAGE: &'static str = "
+static USAGE: &'static str = r#"
+d8b 888
+Y8P 888
+ 888
+888 888 .d8888b
+888 888 d88P"
+888 888 888
+888 888 Y88b.
+888 888 "Y8888P
+
A converter and statistics utility for IRC log files.
Usage:
ilc parse <file>...
+ ilc
Options:
-h --help Show this screen.
-v --version Show the version (duh).
-";
+"#;
#[derive(RustcDecodable, Debug)]
struct Args {
@@ -49,7 +59,7 @@ fn main() {
let iter = parser.decode(f);
let events: Vec<_> = iter.collect();
for e in events {
- parser.encode(io::stdout(), &e.unwrap());
+ drop(parser.encode(io::stdout(), &e.unwrap()));
}
}
}