summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-05-26 18:41:32 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-05-26 18:41:32 +0200
commit5047d01be77832cc7a03608777122b471c4a9156 (patch)
treed42815f9ac8435d73764e9e1ab9094d463d509f2
parent792526d07d6b4c7fb57918074d0fa11831678e3a (diff)
downloadvtcol-5047d01be77832cc7a03608777122b471c4a9156.tar.gz
vtcol.rs: reinstate usage message
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/vtcol.rs6
3 files changed, 7 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index c783527..b7675b4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,4 +1,4 @@
[root]
name = "vtcol"
-version = "0.42.0"
+version = "0.42.1"
diff --git a/Cargo.toml b/Cargo.toml
index d4fc6db..bd08da9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@
[package]
name = "vtcol"
description = "Set Linux console color scheme"
-version = "0.42.0"
+version = "0.42.1"
authors = [ "Philipp Gesang <phg@phi-gamma.net>" ]
repository = "https://github.com/phi-gamma/vtcol"
keywords = [ "linux", "virtual_terminal", "tty", "console", "system" ]
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)
{