Skip to content

Commit 7daf59e

Browse files
Exit after --version or --help args detected (#902)
Closes #863
1 parent 6627d5e commit 7daf59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ark/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ fn main() -> anyhow::Result<()> {
124124
},
125125
"--version" => {
126126
println!("Ark {}", env!("CARGO_PKG_VERSION"));
127-
has_action = true;
127+
return Ok(());
128128
},
129129
"--install" => {
130130
install_kernel_spec()?;
131131
return Ok(());
132132
},
133133
"--help" => {
134134
print_usage();
135-
has_action = true;
135+
return Ok(());
136136
},
137137
"--no-capture-streams" => capture_streams = false,
138138
"--default-repos" => {

0 commit comments

Comments
 (0)