ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit 8592f981569a907a54e22180a181f7a607ffd45f
parent 68d6ac3a11834c28ea6248b2c73c570785bd85c2
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Tue,  8 Apr 2014 16:34:24 +0200

Merge pull request #53 from andreineculau/patch-2

Make -f take an optional argument, otherwise it defaults to 5
Diffstat:
Mansiweather | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ansiweather b/ansiweather @@ -90,7 +90,7 @@ forecast=$(get_config "forecast" || echo 0) daylight=$(get_config "daylight" || echo false) # Or get config options from command line flags -while getopts l:u:s:f:d: option +while getopts :l:u:s:f:Fd: option do case "${option}" in @@ -98,6 +98,7 @@ do u) units=${OPTARG};; s) symbols=${OPTARG};; f) forecast=${OPTARG};; + F) forecast="5";; d) daylight=${OPTARG};; esac done