diff options
| author | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-06 08:13:28 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-06 08:13:28 -0800 |
| commit | 0bf19d2d6704c7651b1cd2e7152b2455a61edfc8 (patch) | |
| tree | 5f79b8f869d7abaa42ccb5f21bbc8530af6f5b46 /src/cli.rs | |
| parent | 3c57c0388727884f9ed4e6066f1b58408ad3fed1 (diff) | |
| parent | c0054d0fe291f88ac75545ab014d0b062fa5c180 (diff) | |
| download | r-alacritty-0bf19d2d6704c7651b1cd2e7152b2455a61edfc8.tar.gz r-alacritty-0bf19d2d6704c7651b1cd2e7152b2455a61edfc8.tar.bz2 r-alacritty-0bf19d2d6704c7651b1cd2e7152b2455a61edfc8.zip | |
Merge pull request #67 from rudism/window-name
Added --title argument to set window title
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 _ => (), } |