Fix bug #5928 - Option --version in testparm does not work.
authorTomasz Krasuski <kr0tki@poczta.onet.pl>
Sat, 6 Dec 2008 00:30:55 +0000 (16:30 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 6 Dec 2008 00:30:55 +0000 (16:30 -0800)
source/lib/popt_common.c

index 25e41ab5f3c0ce1886190662d385f2d63e0021c4..bf8aca878f59c0d9b4d3cb06233acff85d8fd757 100644 (file)
@@ -166,7 +166,7 @@ struct poptOption popt_common_configfile[] = {
 };
 
 struct poptOption popt_common_version[] = {
-       { NULL, 0, POPT_ARG_CALLBACK, (void *)popt_common_callback },
+       { NULL, 0, POPT_ARG_CALLBACK|POPT_CBFLAG_POST, (void *)popt_common_callback },
        { "version", 'V', POPT_ARG_NONE, NULL, 'V', "Print version" },
        POPT_TABLEEND
 };