fish_key_reader: Exit after "--version"

This commit is contained in:
Fabian Boehm 2024-01-22 17:16:06 +01:00
parent 977b97a236
commit d74519081e
2 changed files with 5 additions and 0 deletions

View File

@ -341,6 +341,7 @@ fn parse_flags(continuous_mode: &mut bool, verbose: &mut bool) -> bool {
fish::BUILD_VERSION
)
);
std::process::exit(0);
}
'V' => {
*verbose = true;

View File

@ -18,6 +18,10 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = (
)
expect_prompt()
sendline("$fish_key_reader --version")
expect_re("fish_key_reader, version .*")
expect_prompt()
sendline("exec $fish_key_reader -c -V")
# Do we get the expected startup prompt?