mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
fish_key_reader: Exit after "--version"
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user