]> granicus.if.org Git - graphviz/commitdiff
Add option -? for usage to vimdot
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sat, 26 Sep 2020 08:52:45 +0000 (10:52 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:50:35 +0000 (14:50 +0200)
plugin/xlib/vimdot.sh

index a8d25b5b21eb4bfb8f42d557ea1d9d1a5c834c71..1ca125954e1671ec4d74a7fa5468c98c6ba54f4a 100755 (executable)
@@ -1,6 +1,11 @@
 #!/bin/sh
 # Written by: John Ellson <ellson@research.att.com>
 
+if [ "$1" = "-?" ]; then
+    echo "Usage: vimdot [file]" >&2
+    exit 0
+fi
+
 error() { echo "$0: $*" >&2; exit 1; }
 
 # Try $EDITOR first, else try vim or vi