增加参数校验
This commit is contained in:
@@ -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
@@ -288,7 +288,8 @@ fn main() {
|
||||
punch_model,
|
||||
port,
|
||||
first_latency,
|
||||
);
|
||||
)
|
||||
.unwrap();
|
||||
(config, cmd)
|
||||
};
|
||||
println!("version {}", vnt::VNT_VERSION);
|
||||
|
||||
Reference in New Issue
Block a user