ansiweather

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

commit e4776e714b3b89abd77888be1d42afae2d59f27a
parent e9470ea66dd162db84e4d28b4b78a0a92ac65535
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  2 Feb 2017 19:21:26 +0100

Add a '-v' option to show version number (Close #106)

Diffstat:
DTODO | 1-
Mansiweather | 5+++--
Mansiweather.1 | 7+++++--
3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/TODO b/TODO @@ -1 +0,0 @@ -- Add a '-v' option to show version number diff --git a/ansiweather b/ansiweather @@ -7,7 +7,7 @@ # https://github.com/fcambus/ansiweather # # # # Created: 2013-08-29 # -# Last Updated: 2016-10-18 # +# Last Updated: 2017-02-02 # # # # AnsiWeather is released under the BSD 2-Clause license. # # See LICENSE file for details. # @@ -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 l:u:f:Fa:s:k:w:h:p:d: option +while getopts l:u:f:Fa:s:k:w:h:p:d:v option do case "${option}" in @@ -59,6 +59,7 @@ do h) show_humidity=${OPTARG};; p) show_pressure=${OPTARG};; d) show_daylight=${OPTARG};; + v) echo "AnsiWeather 1.09" && exit 0;; esac done diff --git a/ansiweather.1 b/ansiweather.1 @@ -1,5 +1,5 @@ .\" -.\" Copyright (c) 2013-2016, Frederic Cambus +.\" Copyright (c) 2013-2017, Frederic Cambus .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -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: October 18 2016 $ +.Dd $Mdocdate: February 2 2017 $ .Dt ANSIWEATHER 1 .Os .Sh NAME @@ -43,6 +43,7 @@ .Op Fl h Ar value .Op Fl p Ar value .Op Fl d Ar value +.Op Fl v Ar value .Sh DESCRIPTION .Nm is a shell script for displaying the current weather @@ -103,6 +104,8 @@ Toggle daylight data display ( or .Ar false ) +.It Fl v +Display version .El .Sh EXAMPLES Display forecast using metric units for the next five days (showing