argparse: fix error message for missing option argument

case #1 in #6483
This commit is contained in:
Johannes Altmanninger
2020-01-08 14:37:04 +01:00
parent d8e93a5956
commit 0e707b88f0
2 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
#RUN: %fish %s
##########
set -g LANG C
# Start by verifying a bunch of error conditions.
# No args is an error
@@ -300,3 +303,7 @@ begin
# CHECK: argv
# CHECK: saved_status 57
end
# #6483 - error messages for missing arguments
argparse -n foo r/required= -- foo -r
# CHECKERR: foo: Expected argument for option -r