From 2ddfec2d400e03100913093a16692ed362fd8ee2 Mon Sep 17 00:00:00 2001 From: maden Date: Fri, 8 Dec 2006 07:37:31 +0000 Subject: [PATCH] Allow multiple options --- showtags | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/showtags b/showtags index 5203f49..79bd1d5 100755 --- a/showtags +++ b/showtags @@ -1,7 +1,8 @@ #! /bin/bash # asciiMonth=0 -case "$1" in +while [ $# != 0 ]; do + case "$1" in -h | -\? | --help) echo "usage: showtags [-a] [-s]" echo " Find CVS tags in this directory and subdirectories." @@ -13,7 +14,7 @@ case "$1" in -v | --version) echo 'Original Author: Dirk Zimoch' echo 'Last Change by $Author: maden $' - echo '$Revision: 1.9 $ $Date: 2006/11/21 13:00:20 $' + echo '$Revision: 1.10 $ $Date: 2006/12/08 07:37:31 $' echo '$Source: /cvs/G/EPICS/App/scripts/showtags,v $' exit 0 ;; @@ -30,8 +31,9 @@ case "$1" in echo "Unknown option $1. Try: -h, --help, -v, --version, -a" exit 1 ;; -esac - + esac + shift +done trap "stty echo" EXIT SIGTERM SIGKILL TAGS=$(cvs status -v 2>/dev/null | awk '