]> granicus.if.org Git - python/commitdiff
fix handling when a proper getopt(1) is available; the "--"
authorFred Drake <fdrake@acm.org>
Tue, 29 Jun 2004 14:39:06 +0000 (14:39 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 29 Jun 2004 14:39:06 +0000 (14:39 +0000)
end-of-options marker wasn't recognized

Doc/tools/push-docs.sh

index c124f8b5da6f97cf67b13119b0b1f7e48afbac9b..dfccb5b7330f163f8f73a5697543954ff4cc3ffe 100755 (executable)
@@ -61,6 +61,10 @@ while [ "$#" -gt 0 ] ; do
           EXPLANATION="`cat $2`"
           shift 2
           ;;
+      --)
+          shift 1
+          break
+          ;;
       -*)
           echo "Unknown option: $1" >&2
           exit 2