Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::io::{self, BufRead, BufReader, ErrorKind, Write};
use std::os::unix::net::{UnixListener, UnixStream};
use std::panic::panic_any;
use std::path::Path;
use std::process;

use getopts::Options;
use winit::event_loop::EventLoopWindowTarget;
Expand Down Expand Up @@ -255,7 +255,10 @@ pub fn process_cli(args: Vec<String>) -> Result<ShouldRun, String> {
opts.optflag("v", "version", "print the version of wired and leave");
let matches = match opts.parse(&args[1..]) {
Ok(m) => m,
Err(e) => panic_any(e.to_string()),
Err(e) => {
eprintln!("Error: {}", e);
process::exit(1)
}
};

// Matching
Expand Down
Loading