]> granicus.if.org Git - graphviz/commitdiff
Add option -? for usage to non-Windows version of lneato
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 20 Sep 2020 20:02:44 +0000 (22:02 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:47:15 +0000 (14:47 +0200)
Added the option to lneato.ksh, lneato.bsh and lneato.sh which is the
one that is released as lneato.

cmd/lneato/lneato.bsh
cmd/lneato/lneato.ksh
cmd/lneato/lneato.sh

index ba88b1f3aaecd753a54020e8b1e21737eff9e859..319d82c4a020cdf7923ded1b88b85cf6a960136a 100755 (executable)
@@ -42,6 +42,10 @@ do
                                exit 1
                        fi
                        ;;
+               -\?)
+                       $usage
+                       exit 0
+                       ;;
                -?*)
                        $usage
                        exit 1
index ec79d1ed95476b6ba01f56af9055bc4685301fc2..e6cd6063a84b8c8243f97ecf64ae23856b873ce2 100755 (executable)
@@ -43,6 +43,10 @@ function processoptions {
             FILES=$(print $FILES "'"$1"'")
             shift
             ;;
+        -\?)
+            usage
+            exit 0
+            ;;
         -*)
             usage
             exit 1
index 6b98ef23c03fe7271827dbfed9ac3a687ccbf18f..98b1b69dda445db9c7d05f23f7c9c57b9cd9a54e 100755 (executable)
@@ -45,6 +45,10 @@ do
                                exit 1
                        fi
                        ;;
+               -\?)
+                       $usage
+                       exit 0
+                       ;;
                -?*)
                        $usage
                        exit 1