commit 11bc55a38e1b1e1c9a68a5f7e5bce211b822e466
parent 6f1b2421d95da477cf3b6c216bdf2477a2a3ca1b
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 18 Oct 2016 10:19:37 +0200
Reorder getopt options
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ansiweather b/ansiweather
@@ -44,7 +44,7 @@ fetch_cmd=$(get_config "fetch_cmd" || echo "curl -sf")
###[ Parse the command line ]##################################################
# Get config options from command line flags
-while getopts k:l:u:f:Fd:a:s:w:h:p: option
+while getopts l:u:f:Fa:s:k:w:h:p:d: option
do
case "${option}"
in
@@ -52,13 +52,13 @@ do
u) units=${OPTARG};;
f) forecast=${OPTARG};;
F) forecast="5";;
- d) daylight=${OPTARG};;
a) ansi=${OPTARG};;
s) symbols=${OPTARG};;
k) api_key=${OPTARG};;
w) show_wind=${OPTARG};;
h) show_humidity=${OPTARG};;
p) show_pressure=${OPTARG};;
+ d) daylight=${OPTARG};;
esac
done