Skip to content

Commit 08a5d4e

Browse files
committed
Exit after about flag passed
1 parent eaa181c commit 08a5d4e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "netmuxd"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/config.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,19 @@ impl NetmuxdConfig {
8282
println!(" --disable-mdns");
8383
println!(" -h, --help");
8484
println!(" --about");
85-
println!("\n\nSet RUST_LOG to info, debug, warn, error, or trace to see more logs. Default is error.");
85+
println!(
86+
"\n\nSet RUST_LOG to info, debug, warn, error, or trace to see more logs. Default is error."
87+
);
8688
std::process::exit(0);
8789
}
8890
"--about" => {
89-
println!("netmuxd - a network multiplexer");
91+
println!(
92+
"netmuxd v{} - a network multiplexer",
93+
env!("CARGO_PKG_VERSION")
94+
);
9095
println!("Copyright (c) 2020 Jackson Coxson");
9196
println!("Licensed under the MIT License");
97+
std::process::exit(0);
9298
}
9399
_ => {
94100
i += 1;

0 commit comments

Comments
 (0)