[commits] [alfred] master: alfred: Fix parsing of short program parameter -v and -V (4f92363)

postmaster at open-mesh.org postmaster at open-mesh.org
Wed Oct 17 22:16:04 CEST 2012


Repository : ssh://git@open-mesh.org/alfred

On branch  : master

>---------------------------------------------------------------

commit 4f9236308f38d5691b2532f0b32f43039c53500a
Author: Sven Eckelmann <sven at narfation.org>
Date:   Wed Oct 17 21:45:28 2012 +0200

    alfred: Fix parsing of short program parameter -v and -V
    
    Signed-off-by: Sven Eckelmann <sven at narfation.org>


>---------------------------------------------------------------

4f9236308f38d5691b2532f0b32f43039c53500a
 main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 0852236..ccb72cd 100644
--- a/main.c
+++ b/main.c
@@ -78,7 +78,7 @@ struct globals *alfred_init(int argc, char *argv[])
 	globals->best_server = NULL;
 	globals->clientmode_version = 0;
 
-	while ((opt = getopt_long(argc, argv, "ms:r:hi:", long_options,
+	while ((opt = getopt_long(argc, argv, "ms:r:hi:vV:", long_options,
 				  &opt_ind)) != -1) {
 		switch (opt) {
 		case 'r':



More information about the commits mailing list