mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
fix handling when a proper getopt(1) is available; the "--"
end-of-options marker wasn't recognized
This commit is contained in:
parent
93b4b88e96
commit
96b935e643
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ while [ "$#" -gt 0 ] ; do
|
|||
EXPLANATION="`cat $2`"
|
||||
shift 2
|
||||
;;
|
||||
--)
|
||||
shift 1
|
||||
break
|
||||
;;
|
||||
-*)
|
||||
echo "Unknown option: $1" >&2
|
||||
exit 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue