aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorJoe Wilm <jwilm@users.noreply.github.com>2017-01-08 21:43:27 -0800
committerGitHub <noreply@github.com>2017-01-08 21:43:27 -0800
commit2fa271419c4765f7758dcf336fe0b913c12c18a6 (patch)
tree36b43ff5b0de3e326a96e0e92313e395d63db574 /src/cli.rs
parent9e856bc9d2c99f8cef143786d42c8f4c40de4a5f (diff)
parentd7a59810484015eda26ab34938512c54f6477d4e (diff)
downloadr-alacritty-2fa271419c4765f7758dcf336fe0b913c12c18a6.tar.gz
r-alacritty-2fa271419c4765f7758dcf336fe0b913c12c18a6.tar.bz2
r-alacritty-2fa271419c4765f7758dcf336fe0b913c12c18a6.zip
Merge pull request #236 from tcrayford/print_glutin_events
print glutin events if --print-events is passed
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index e95114c7..8500ebab 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -16,6 +16,7 @@ use index::{Line, Column};
/// Options specified on the command line
pub struct Options {
+ pub print_events: bool,
pub ref_test: bool,
pub columns: Column,
pub lines: Line,
@@ -25,6 +26,7 @@ pub struct Options {
impl Default for Options {
fn default() -> Options {
Options {
+ print_events: false,
ref_test: false,
columns: Column(80),
lines: Line(24),
@@ -43,6 +45,7 @@ impl Options {
match &arg[..] {
// Generate ref test
"--ref-test" => options.ref_test = true,
+ "--print-events" => options.print_events = true,
// Set dimensions
"-d" | "--dimensions" => {
args_iter.next()