diff options
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 _ => (), } |