From c0054d0fe291f88ac75545ab014d0b062fa5c180 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Thu, 5 Jan 2017 15:04:23 -0600 Subject: Added --title argument to set window title --- src/cli.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 15bd57c5..e95114c7 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -19,6 +19,7 @@ pub struct Options { pub ref_test: bool, pub columns: Column, pub lines: Line, + pub title: String } impl Default for Options { @@ -27,6 +28,7 @@ impl Default for Options { ref_test: false, columns: Column(80), lines: Line(24), + title: "Alacritty".to_owned() } } } @@ -48,6 +50,9 @@ impl Options { args_iter.next() .map(|h| h.parse().map(|h| options.lines = Line(h))); }, + "-t" | "--title" => { + args_iter.next().map(|t| options.title = t); + }, // ignore unexpected _ => (), } -- cgit