mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
argparse: fix error message for missing option argument
case #1 in #6483
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user