summaryrefslogtreecommitdiff
path: root/xts5
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-24 17:26:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-06-25 16:16:09 +1000
commit2b4391a20f8725018de20cab1da30a2da8f65c42 (patch)
tree4a24de40598d883366ae4e39007ee4476cd541d0 /xts5
parent4e3fb6de2439a30c4fcb2585362e1bbffdcbebeb (diff)
Add -h help output to pt.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xts5')
-rwxr-xr-xxts5/src/bin/scripts/pt29
1 files changed, 18 insertions, 11 deletions
diff --git a/xts5/src/bin/scripts/pt b/xts5/src/bin/scripts/pt
index f151d5bf..804edee9 100755
--- a/xts5/src/bin/scripts/pt
+++ b/xts5/src/bin/scripts/pt
@@ -2,17 +2,20 @@
#
# $XConsortium: pt,v 1.2 92/06/30 17:32:56 rws Exp $
#
-# Flags accepted.
-# -v XT_VARIABLE_NAME=Value Add a variable setting
-# -d display Set the display
-# -i <IC's> List of IC's to do
-# -p Do pixmaps only.
-# -w Do windows only.
-# -P Pause after each drawing.
-# -D Do default depth of screen only.
-# -x <lev> Set debug level
-# -g Generate pixmaps.
-# -m Use macro version of function.
+usage () {
+echo "Flags accepted.
+ -v XT_VARIABLE_NAME=Value Add a variable setting
+ -d display Set the display
+ -i <IC's> List of IC's to do
+ -p Do pixmaps only.
+ -w Do windows only.
+ -P Pause after each drawing.
+ -D Do default depth of screen only.
+ -x <lev> Set debug level
+ -g Generate pixmaps.
+ -m Use macro version of function.
+"
+}
# The display defaults to $DISPLAY
#
@@ -64,6 +67,10 @@ do
-m)
PROG=./MTest
;;
+ -h)
+ usage
+ exit 0
+ ;;
*)
PROG=$1
;;