about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorJoshua Krusell <js.shirin@gmail.com>2021-02-03 16:46:59 +0100
committerOliver Kiddle <opk@zsh.org>2021-02-13 00:54:59 +0100
commit3d6e5b6231f0d80873c6f83924a48df223121e72 (patch)
treeb0779bb6f16c8bc85c1572f56928b45d393043bb /Test
parent2cf6032a301d994c578e5e1942c4815e85651647 (diff)
downloadzsh-3d6e5b6231f0d80873c6f83924a48df223121e72.tar.gz
zsh-3d6e5b6231f0d80873c6f83924a48df223121e72.tar.xz
zsh-3d6e5b6231f0d80873c6f83924a48df223121e72.zip
47905: Add leading '-' to zparseopts option parsing errors
Diffstat (limited to 'Test')
-rw-r--r--Test/V12zparseopts.ztst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/V12zparseopts.ztst b/Test/V12zparseopts.ztst
index c41c49022..816e1d041 100644
--- a/Test/V12zparseopts.ztst
+++ b/Test/V12zparseopts.ztst
@@ -65,11 +65,11 @@
     } $=1
   done
 0:zparseopts -F
-?(anon):zparseopts:2: bad option: x
+?(anon):zparseopts:2: bad option: -x
 >ret: 1, optv: , argv: -a -x -z
-?(anon):zparseopts:2: bad option: x
->ret: 1, optv: , argv: -ax -z
 ?(anon):zparseopts:2: bad option: -x
+>ret: 1, optv: , argv: -ax -z
+?(anon):zparseopts:2: bad option: --x
 >ret: 1, optv: , argv: -a --x -z
 
   for 1 in '-a 1 2 3' '1 2 3'; do
@@ -168,5 +168,5 @@
     print -r - ret: $?, optv: $optv, argv: $argv
   } -ab1 -c
 0:missing optarg
-?(anon):zparseopts:2: missing argument for option: c
+?(anon):zparseopts:2: missing argument for option: -c
 >ret: 1, optv: , argv: -ab1 -c