commit f3cde7fb03c7a79f02b1d35535fdef7121065f4c
parent 0e5208b1968d152810902e619310c644f9cf4bb2
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 18 Oct 2016 07:16:22 +0200
Drop -h option, as everything is available in the manpage
Diffstat:
2 files changed, 2 insertions(+), 35 deletions(-)
diff --git a/ansiweather b/ansiweather
@@ -7,7 +7,7 @@
# https://github.com/fcambus/ansiweather #
# #
# Created: 2013-08-29 #
-# Last Updated: 2016-07-26 #
+# Last Updated: 2016-10-18 #
# #
# AnsiWeather is released under the BSD 2-Clause license. #
# See LICENSE file for details. #
@@ -56,42 +56,11 @@ do
a) ansi=${OPTARG};;
s) symbols=${OPTARG};;
k) api_key=${OPTARG};;
- h) usage=true;;
esac
done
-###[ Display usage ]###########################################################
-
-if [ "$usage" = true ]
-then
- printf "%s\n" \
- "" \
- "AnsiWeather 1.08" \
- "Copyright (c) 2013-2016, Frederic Cambus" \
- "" \
- "USAGE: ansiweather [options]" \
- "" \
- "Options are :" \
- "" \
- " -l Specify location" \
- " -u Specify unit system to use (metric or imperial)" \
- " -f Toggle forecast mode for the specified number of upcoming days" \
- " -F Toggle forecast mode for the next five days" \
- " -d Toggle daylight data display" \
- " -a Toggle ANSI colors display" \
- " -s Toggle symbols display" \
- " -k OpenWeatherMap API key" \
- " -h Display usage" \
- "" \
- "EXAMPLES: ansiweather -l Rzeszow,PL -u metric -s true -f 5 -d true" \
- ""
- exit
-fi
-
-
-
###[ Check if bc and jq are installed ]########################################
jqpath=$(which jq)
diff --git a/ansiweather.1 b/ansiweather.1
@@ -24,7 +24,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 19 2016 $
+.Dd $Mdocdate: October 18 2016 $
.Dt ANSIWEATHER 1
.Os
.Sh NAME
@@ -82,8 +82,6 @@ or
)
.It Fl k Ar key
Specify API key
-.It Fl h
-Display help
.El
.Sh AUTHORS
.Nm