增加参数校验

This commit is contained in:
lubeilin
2023-12-30 12:00:47 +08:00
parent 16f833ec72
commit 698e2531e8
4 changed files with 28 additions and 7 deletions
+2 -1
View File
@@ -158,7 +158,8 @@ pub fn read_config(file_path: &str) -> io::Result<(Config, bool)> {
punch_model,
file_conf.port,
file_conf.first_latency,
);
)
.unwrap();
Ok((config, file_conf.cmd))
}
+2 -1
View File
@@ -288,7 +288,8 @@ fn main() {
punch_model,
port,
first_latency,
);
)
.unwrap();
(config, cmd)
};
println!("version {}", vnt::VNT_VERSION);