From 5047d01be77832cc7a03608777122b471c4a9156 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 26 May 2015 18:41:32 +0200 Subject: vtcol.rs: reinstate usage message --- src/vtcol.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vtcol.rs b/src/vtcol.rs index 8cb0e86..03a8258 100644 --- a/src/vtcol.rs +++ b/src/vtcol.rs @@ -162,6 +162,11 @@ impl<'a> Job { Err(f) => panic!(f.to_string()) }; + if matches.opt_present("h") { + Job::usage(&this, opts); + unsafe { exit(0) }; + }; + if matches.opt_present("v") { unsafe { VERBOSITY = 1_u8; } }; if matches.opt_present("l") { @@ -590,7 +595,6 @@ get_console_fd { Some (path) => { - //let path = std::path::Path::new(std::ffi::CString::new(path.as_bytes()).unwrap()); let path = std::path::Path::new(path); match fd_of_path(&path) { -- cgit v1.2.3