Version and help without opening the program (#590)

Co-authored-by: Francisco Santos <franciscosantos@MacBook-Pro.Home>
macos-click-through
Francisco Santos 4 years ago committed by GitHub
parent d8d6f4eac2
commit 2098de7296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,11 +104,13 @@ fn main() {
if std::env::args().any(|arg| arg == "--version" || arg == "-v") { if std::env::args().any(|arg| arg == "--version" || arg == "-v") {
attach_parent_console(); attach_parent_console();
println!("Neovide version: {}", env!("CARGO_PKG_VERSION")); println!("Neovide version: {}", env!("CARGO_PKG_VERSION"));
return;
} }
if std::env::args().any(|arg| arg == "--help" || arg == "-h") { if std::env::args().any(|arg| arg == "--help" || arg == "-h") {
attach_parent_console(); attach_parent_console();
println!("Neovide: {}", env!("CARGO_PKG_DESCRIPTION")); println!("Neovide: {}", env!("CARGO_PKG_DESCRIPTION"));
return;
} }
if let Err(err) = window_geometry() { if let Err(err) = window_geometry() {

Loading…
Cancel
Save