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 ca80e31ee25965c8128b688066af5c580ede4d0b
parent 816ccff0484bd77b398692ab72b467b7b992827f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 15 Jan 2020 12:06:47 +0100

Do not accept long options

Diffstat:
M.local/bin/lyrics | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.local/bin/lyrics b/.local/bin/lyrics @@ -12,11 +12,11 @@ show_help() echo "and song title is expected as stdin." 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 verbose information during execution" - echo " -m, --mpd fetch lyrics for song currently playing on mpd" - echo " -- do not consider any following args as options" + echo " -h show this message" + echo " -v show version and license information" + echo " -V show verbose information during execution" + echo " -m fetch lyrics for song currently playing on mpd" + echo " -- do not consider any following args as options" } show_version() @@ -70,18 +70,18 @@ verbose=0 mpd=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 ;; - -m|--mpd) + -m) mpd=1 ;; --) # end all options