string: Error out on match -eq

The `--entire` would enable output even though the `--quiet` should
have silenced it. These two don't make any sense together so print an
error, because the user could have just left off the `-q`.
This commit is contained in:
Fabian Homborg
2019-10-22 21:56:44 +02:00
parent d579964c7d
commit 66938d206a
2 changed files with 10 additions and 0 deletions

View File

@@ -559,3 +559,7 @@ function dualcollect
end
count (dualcollect)
# CHECK: 3
string match -qer asd asd
# CHECKERR: match: Invalid combination of options,
# CHECKERR: --entire and --quiet are mutually exclusive