{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::BuildOptions (perldoc)\n\n## NAME\n\nDpkg::BuildOptions - parse and update build options\n\n## DESCRIPTION\n\nThis class can be used to manipulate options stored in environment variables like\nDEBBUILDOPTIONS and DEBBUILDMAINTOPTIONS.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **METHODS**\n- **CHANGES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::BuildOptions",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::BuildOptions - parse and update build options",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 48,
                "subsections": []
            },
            {
                "name": "CHANGES",
                "lines": 10,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::BuildOptions - parse and update build options\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class can be used to manipulate options stored in environment variables like\nDEBBUILDOPTIONS and DEBBUILDMAINTOPTIONS.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "$bo = Dpkg::BuildOptions->new(%opts)\nCreate a new Dpkg::BuildOptions object. It will be initialized based on the value of the\nenvironment variable named $opts{envvar} (or DEBBUILDOPTIONS if that option is not set).\n\n$bo->reset()\nReset the object to not have any option (it's empty).\n\n$bo->merge($content, $source)\nMerge the options set in $content and record that they come from the source $source. $source\nis mainly used in warning messages currently to indicate where invalid options have been\ndetected.\n\n$content is a space separated list of options with optional assigned values like \"nocheck\nparallel=2\".\n\n$bo->set($option, $value, [$source])\nStore the given option in the object with the given value. It's legitimate for a value to be\nundefined if the option is a simple boolean (its presence means true, its absence means\nfalse). The $source is optional and indicates where the option comes from.\n\nThe known options have their values checked for sanity. Options without values have their\nvalue removed and options with invalid values are discarded.\n\n$bo->get($option)\nReturn the value associated to the option. It might be undef even if the option exists. You\nmight want to check with $bo->has($option) to verify if the option is stored in the object.\n\n$bo->has($option)\nReturns a boolean indicating whether the option is stored in the object.\n\n$bo->parsefeatures($option, $usefeature)\nParse the $option values, as a set of known features to enable or disable, as specified in\nthe $usefeature hash reference.\n\nEach feature is prefixed with a ‘+’ or a ‘-’ character as a marker to enable or disable it.\nThe special feature “all” can be used to act on all known features.\n\nUnknown or malformed features will emit warnings.\n\n$string = $bo->output($fh)\nReturn a string representation of the build options suitable to be assigned to an\nenvironment variable. Can optionally output that string to the given filehandle.\n\n$bo->export([$var])\nExport the build options to the given environment variable. If omitted, the environment\nvariable defined at creation time is assumed. The value set to the variable is also\nreturned.\n",
                "subsections": []
            },
            "CHANGES": {
                "content": "Version 1.02 (dpkg 1.18.19)\nNew method: $bo->parsefeatures().\n\nVersion 1.01 (dpkg 1.16.1)\nEnable to use another environment variable instead of DEBBUILDOPTIONS. Thus add support for\nthe \"envvar\" option at creation time.\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}