[repo.or.cz] wmaker-crm.git branch next updated: wmaker-0.95.6-308-g32d328e

crmafra <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  32d328e4884cda8f0757ea471020d2bdf004bac4 (commit)
      from  dcaa372e941a139a1699e9b968fd9f07982246dd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/32d328e4884cda8f0757ea471020d2bdf004bac4

commit 32d328e4884cda8f0757ea471020d2bdf004bac4
Author: Doug Torrance <[email protected]>
Date:   Sun Jun 7 12:16:31 2015 -0500

    wmiv: Add long command line options --help and --version.
    
    We will need --help for `make check` to work once we add a manpage.

diff --git a/util/wmiv.c b/util/wmiv.c
index 45cc4e3..90bc88d 100755
--- a/util/wmiv.c
+++ b/util/wmiv.c
@@ -34,6 +34,7 @@
 #include <limits.h>
 #include <unistd.h>
 #include <sys/stat.h>
+#include <getopt.h>
 #include "config.h"
 
 #ifdef HAVE_EXIF
@@ -705,7 +706,14 @@ int main(int argc, char **argv)
 	red.red = 255;
 	red.green = red.blue = 0;
 
-	option = getopt(argc, argv, "hv");
+	static struct option long_options[] = {
+			{"version", no_argument, 0, 'v'},
+			{"help", no_argument, 0, 'h'},
+			{0, 0, 0, 0}
+		};
+	int option_index = 0;
+
+	option = getopt_long (argc, argv, "hv", long_options, &option_index);
 	if (option != -1) {
 		switch (option) {
 		case 'h':

-----------------------------------------------------------------------

Summary of changes:
 util/wmiv.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.