diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-13 18:37:59 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-15 22:18:29 +0530 |
| commit | 050d846b5e41851d4ff5e8a4bbd7f24c72754507 (patch) | |
| tree | ce50f8ab9e6e514e8503b2a52a37f0b640af236a /src/main.rs | |
| parent | Fix after rebase (diff) | |
| download | sl0ppij-050d846b5e41851d4ff5e8a4bbd7f24c72754507.tar.gz sl0ppij-050d846b5e41851d4ff5e8a4bbd7f24c72754507.tar.xz sl0ppij-050d846b5e41851d4ff5e8a4bbd7f24c72754507.zip | |
clean and exit on window close
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index 2430d84a..49e42ffb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,13 +24,6 @@ use std::convert::TryFrom; pub fn main() { let opts = CliArgs::from_args(); - let config = match Config::try_from(&opts) { - Ok(config) => config, - Err(e) => { - eprintln!("There was an error in the config file:\n{}", e); - std::process::exit(1); - } - }; if let Some(crate::cli::ConfigCli::Setup(setup)) = opts.option.clone() { Setup::from_cli(&setup, opts).expect("Failed to print to stdout"); @@ -43,7 +36,6 @@ pub fn main() { std::process::exit(1); } }; - let config_options = Options::from_cli(&config.options, opts.option.clone()); atomic_create_dir(&*ZELLIJ_TMP_DIR).unwrap(); atomic_create_dir(&*ZELLIJ_TMP_LOG_DIR).unwrap(); if let Some(path) = opts.server { |
