[Pkg-wmaker-commits] [wmsun] 29/73: wmsun: Add support for wmgeneral -geometry command line option.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Aug 28 12:04:45 UTC 2015


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

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

commit a848dbf65eb58c8682d381562a53a9fb5fb98ded
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Jun 14 17:04:44 2015 -0500

    wmsun: Add support for wmgeneral -geometry command line option.
    
    Also take the opportunity to fit -td option's help text on one line.
---
 wmSun.1 | 6 ++++--
 wmSun.c | 7 ++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/wmSun.1 b/wmSun.1
index 1256f8a..95b5ba5 100644
--- a/wmSun.1
+++ b/wmSun.1
@@ -2,8 +2,7 @@
 .SH NAME
 WMSUN \- Dockable WindowMaker SunRise/SunSet App
 .SH SYNOPSIS
-.B wmSun
-[-h] [-display <Display>] [-lat <Latitude>] [-lon <Longitude>] [-td <TimeDiff>] [-date <yyyymmdd>]
+.B wmSun [OPTIONS]
 .SH DESCRIPTION
 .PP
 wmSun displays the current day's Sun Rise and Set Times. You must enter your
@@ -16,6 +15,9 @@ Display list of command-line options.
 .B \-display <display>
 Use an alternate X Display.
 .TP
+.B \-geometry <geometry>
+Set window geometry.
+.TP
 .B \-lat <Latitude>
 Set latitude of observer.
 .TP
diff --git a/wmSun.c b/wmSun.c
index 5e5c185..249eb3c 100644
--- a/wmSun.c
+++ b/wmSun.c
@@ -325,6 +325,10 @@ void ParseCMDLine(int argc, char *argv[]) {
 
   	    ++i;
 
+        } else if (!strcmp(argv[i], "-geometry")){
+
+	    ++i;
+
         } else if (!strcmp(argv[i], "-lat")){
 
 	    Glat = atof(argv[++i]);
@@ -347,9 +351,10 @@ void ParseCMDLine(int argc, char *argv[]) {
 	    printf("\nwmSun version: %s\n", WMSUN_VERSION);
 	    printf("\nusage: wmSun [-display <Display>] [-lat <Latitude>] [-lon <Longitude>] [-h]\n\n");
 	    printf("\t-display <Display>\tUse alternate X display.\n");
+	    printf("\t-geometry <Geometry>\tSet window geometry.\n");
 	    printf("\t-lat <Latitude>\t\tObservers Latitude. Positive to the west.\n");
 	    printf("\t-lon <Longitude>\tObservers Longitude.\n");
-	    printf("\t-td <Delta Time>\tUser defined difference between UT an LT (hours).\n");
+	    printf("\t-td <Delta Time>\tUser defined difference between UT an LT (hrs).\n");
 	    printf("\t-h\t\t\tDisplay help screen.\n\n");
 	    exit(1);
 	}

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



More information about the Pkg-wmaker-commits mailing list