mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 08:42:44 +08:00
fish_key_reader: Exit after "--version"
This commit is contained in:
parent
977b97a236
commit
d74519081e
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue
Block a user