diff options
author | Nathan Lilienthal <nathan@nixpulvis.com> | 2019-05-03 19:48:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 19:48:25 -0400 |
commit | 34c54e7e0eb7c28406df112d118b82280be2adee (patch) | |
tree | 7b32e11bed7906d67d43da81bd8e8b08f128660d /alacritty/src/main.rs | |
parent | ba6e208a95e37116b031aca02246d3cff04c0216 (diff) | |
download | r-alacritty-34c54e7e0eb7c28406df112d118b82280be2adee.tar.gz r-alacritty-34c54e7e0eb7c28406df112d118b82280be2adee.tar.bz2 r-alacritty-34c54e7e0eb7c28406df112d118b82280be2adee.zip |
Add git hash to version string, and fix crate name (#2397)
This moves `cli` out of `alacritty_terminal` and into `alacritty` where
it belongs, along with the `clap` dependency.
Diffstat (limited to 'alacritty/src/main.rs')
-rw-r--r-- | alacritty/src/main.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index be512bee..24f2d6c9 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -42,7 +42,7 @@ use std::env; use std::os::unix::io::AsRawFd; use alacritty_terminal::clipboard::Clipboard; -use alacritty_terminal::config::{self, Config, Monitor}; +use alacritty_terminal::config::{self, Config, Options, Monitor}; use alacritty_terminal::display::Display; use alacritty_terminal::event_loop::{self, EventLoop, Msg}; #[cfg(target_os = "macos")] @@ -53,8 +53,9 @@ use alacritty_terminal::sync::FairMutex; use alacritty_terminal::term::Term; use alacritty_terminal::tty; use alacritty_terminal::util::fmt::Red; -use alacritty_terminal::{cli, die, event}; +use alacritty_terminal::{die, event}; +mod cli; mod logging; fn main() { @@ -69,7 +70,7 @@ fn main() { } // Load command line options - let options = cli::Options::load(); + let options = cli::options(); // Setup storage for message UI let message_buffer = MessageBuffer::new(); @@ -121,7 +122,7 @@ fn main() { /// config change monitor, and runs the main display loop. fn run( mut config: Config, - options: &cli::Options, + options: &Options, message_buffer: MessageBuffer, ) -> Result<(), Box<dyn Error>> { info!("Welcome to Alacritty"); |