dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0fa29af813d37a44d90b4f6736357cc067622b9d
parent ca80e31ee25965c8128b688066af5c580ede4d0b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 15 Jan 2020 12:07:48 +0100

Do not accept long options

Diffstat:
M.local/bin/template.sh | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/.local/bin/template.sh b/.local/bin/template.sh @@ -9,10 +9,10 @@ show_help() echo "short description here." echo echo "OPTIONS are one or more of the following:" - echo " -h, --help show this message" - echo " -v, --version show version and license information" - echo " -V, --verbose show version and license information" - echo " -- do not consider any following args as options" + echo " -h show this message" + echo " -v show version and license information" + echo " -V show version and license information" + echo " -- do not consider any following args as options" } show_version() @@ -32,15 +32,15 @@ die() verbose=0 while :; do case "$1" in - -h|-\?|--help) + -h) show_help exit 0 ;; - -v|--version) + -v) show_version exit 0 ;; - -V|--verbose) + -V) verbose=1 ;; --) # end all options