We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71de1b4 commit 7519a01Copy full SHA for 7519a01
crates/runc-shim/src/main.rs
@@ -32,7 +32,13 @@ use service::Service;
32
33
fn parse_version() {
34
let os_args: Vec<_> = env::args_os().collect();
35
- let flags = parse(&os_args[1..]).unwrap();
+ let flags = match parse(&os_args[1..]) {
36
+ Ok(flags) => flags,
37
+ Err(e) => {
38
+ eprintln!("Error parsing arguments: {}", e);
39
+ std::process::exit(1);
40
+ }
41
+ };
42
if flags.version {
43
println!("{}:", os_args[0].to_string_lossy());
44
println!(" Version: {}", env!("CARGO_PKG_VERSION"));
0 commit comments