]> granicus.if.org Git - graphviz/commitdiff
Show usage and exit non-zero for unsupported option in gvmap.sh
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 13:10:32 +0000 (15:10 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 8 Oct 2020 19:10:24 +0000 (21:10 +0200)
Towards https://gitlab.com/graphviz/graphviz/-/issues/1843.

cmd/gvmap/gvmap.sh

index 5dc7972bdd63bad0668eda8ebcbb496914cd3fd9..d78f6c40455106b2d4717dd929703ee4366cf195 100755 (executable)
@@ -69,7 +69,8 @@ do
       (getopts -a gvmap "$OPTSTR" x '-?')
       exit 0
     else
-      print -u 2 "gvmap: unknown flag $OPTARG - ignored"
+      print -u 2 "gvmap: unknown flag $OPTARG"
+      getopts -a gvmap "$OPTSTR" x '-?'
     fi
     ;;
   esac