[Pkg-wmaker-commits] [wmforecast] 11/63: documented --interval option

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 17 11:20:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmforecast.

commit 2d56074207c2835a99bc2ee6189e71013dc58df3
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Apr 19 23:45:19 2014 -0500

    documented --interval option
---
 ChangeLog    |  3 ++-
 wmforecast.1 | 12 +++++++++---
 wmforecast.c | 23 +++++++++++++----------
 3 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7f0905e..fc9caa5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 2015-04-19  Doug Torrance <dtorrance at monmouthcollege.edu>
 	* switched timer handler from pthread to WING's native WMAddPersistent-
-	  TimerHandler, resulting in numerous changes:
+	  TimerHandler and added --interval option, resulting in numerous changes:
 	* configure.ac: removed check for pthread
 	* wmforecast.c (UpdateData): struct formerly known as ThreadData, added
 	  long int minutesLeft (keeps track of the number of minutes until the
@@ -11,6 +11,7 @@
 	* wmforecast.c (timerHandler): counts down number of minutes until next
 	  refresh (needed because WMAddPersistentTimerHandler fails when
 	  milliseconds argument too large, e.g., one hour)
+	* wmforecast.c (setPreferences): documented --interval option
 	* wmforecast.c: changed all calls to malloc and realloc to use WINGs's
 	  native wmalloc and wrealloc
 	* wmforecast.c (refresh): new function, refreshes weather data when icon
diff --git a/wmforecast.1 b/wmforecast.1
index 1a03a40..b461858 100644
--- a/wmforecast.1
+++ b/wmforecast.1
@@ -14,11 +14,14 @@ print the version number
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 print this help screen
+.HP
+\fB\-i\fR, \fB\-\-interval\fR <min> number of minutes between refreshes (default 60)
 .TP
 \fB\-u\fR, \fB\-\-units\fR <c|f>
-whether to use Celsius or Fahrenheit (default is f)
+whether to use Celsius or Fahrenheit (default f)
 .TP
-\fB\-w\fR, \fB\-\-woeid\fR <woeid> Where on Earth ID (default is 2502265 for
+\fB\-w\fR, \fB\-\-woeid\fR <woeid>
+Where on Earth ID (default is 2502265 for
 Sunnyvale, CA \fB\-\-\fR to find your WOEID, search
 for your city at http://weather.yahoo.com and
 look in the URL.)
@@ -27,7 +30,10 @@ look in the URL.)
 ZIP code or Location ID (Yahoo has deprecated this
 option and it is not guaranteed to work)
 .PP
-(note that only one of \fB\-w\fR or \fB\-z\fR may be used, not both)
+Notes:
+* only one of \fB\-w\fR or \fB\-z\fR may be used, not both
+.PP
+* double click the icon at any time to refresh data
 .SH AUTHOR
 Written by Doug Torrance
 .SH "REPORTING BUGS"
diff --git a/wmforecast.c b/wmforecast.c
index bde3a88..508b1ae 100755
--- a/wmforecast.c
+++ b/wmforecast.c
@@ -544,16 +544,19 @@ Preferences *setPreferences(int argc, char **argv)
 			printf("a weather dockapp for Window Maker using the Yahoo Weather API\n\n"
 			       "Usage: wmforecast [OPTIONS]\n\n"
 			       "Options:\n"
-			       "    -v, --version       print the version number\n"
-			       "    -h, --help          print this help screen\n" 
-			       "    -u, --units <c|f>   whether to use Celsius or Fahrenheit (default is f)\n"
-			       "    -w, --woeid <woeid> Where on Earth ID (default is 2502265 for\n"
-			       "                        Sunnyvale, CA -- to find your WOEID, search\n"
-			       "                        for your city at http://weather.yahoo.com and\n"
-			       "                        look in the URL.)\n"
-			       "    -z, --zip <zip>     ZIP code or Location ID (Yahoo has deprecated this\n"
-			       "                        option and it is not guaranteed to work)\n"
-			       "(note that only one of -w or -z may be used, not both)\n\n"
+			       "    -v, --version        print the version number\n"
+			       "    -h, --help           print this help screen\n" 
+			       "    -i, --interval <min> number of minutes between refreshes (default 60)\n"
+			       "    -u, --units <c|f>    whether to use Celsius or Fahrenheit (default f)\n"
+			       "    -w, --woeid <woeid>  Where on Earth ID (default is 2502265 for\n"
+			       "                         Sunnyvale, CA -- to find your WOEID, search\n"
+			       "                         for your city at http://weather.yahoo.com and\n"
+			       "                         look in the URL.)\n"
+			       "    -z, --zip <zip>      ZIP code or Location ID (Yahoo has deprecated this\n"
+			       "                         option and it is not guaranteed to work)\n"
+			       "Notes:\n"
+			       "* only one of -w or -z may be used, not both\n\n"
+			       "* double click the icon at any time to refresh data\n\n"
 			       "Report bugs to %s\n",
 			       PACKAGE_BUGREPORT
 				);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmforecast.git



More information about the Pkg-wmaker-commits mailing list