ansiweather

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

commit 59859dffc40442ecd722f47489d20d3d773b6833
parent 68d6ac3a11834c28ea6248b2c73c570785bd85c2
Author: Andrei Neculau <andrei.neculau@gmail.com>
Date:   Sat, 15 Mar 2014 11:39:53 +0100

Make -f take an optional argument, otherwise it defaults to 5

Diffstat:
Mansiweather | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -90,14 +90,14 @@ 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:d:f option do case "${option}" in l) location=${OPTARG};; u) units=${OPTARG};; s) symbols=${OPTARG};; - f) forecast=${OPTARG};; + f) forecast=${OPTARG-5};; d) daylight=${OPTARG};; esac done