s3:testparm: add "--option" to testparm
authorMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 12:45:22 +0000 (13:45 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 14:23:51 +0000 (15:23 +0100)
This way one can test the --option feature with testparm.
E.g.:

testparm -s -v --option="parameter=value" | grep parameter

should print "parameter = value"

source3/utils/testparm.c

index b17d61b91458660ebd1857a75e420ddae18b3487..1a011a5a37da710f445265ba68a30aca2db33d55 100644 (file)
@@ -339,6 +339,7 @@ rameter is ignored when using CUPS libraries.\n",
                {"section-name", '\0', POPT_ARG_STRING, &section_name, 0, "Limit testparm to a named section" },
                POPT_COMMON_VERSION
                POPT_COMMON_DEBUGLEVEL
+               POPT_COMMON_OPTION
                POPT_TABLEEND
        };