aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-05 18:18:55 +0200
committerTeddy Wing2018-10-05 18:18:55 +0200
commit42fa76b3472c2dae8fd6db6649058e54e9f67003 (patch)
treec29053ef205e0497213a1b2c182ee41c6169e1ba /src/lib.rs
parent9a36a0c9a7144e1450fd76afed2f67f4fa3e9b1e (diff)
downloaddome-key-map-42fa76b3472c2dae8fd6db6649058e54e9f67003.tar.bz2
Add a command line option parser
Parse command line options in this library. Need to figure out how to communicate these over FFI to the Objective-C code.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8dc8e93..1f57edb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,6 +5,7 @@ extern crate autopilot;
#[macro_use]
extern crate combine;
+extern crate getopts;
extern crate libc;
#[macro_use]
@@ -13,8 +14,10 @@ extern crate stderrlog;
extern crate xdg;
mod cocoa_bridge;
+mod config;
mod parser;
use parser::{Action, HeadphoneButton, MapAction, MapGroup, MapKind};
pub use cocoa_bridge::*;
+pub use config::{Config, parse_args};