Index: docs/CommandLine.rst =================================================================== --- docs/CommandLine.rst +++ docs/CommandLine.rst @@ -1289,8 +1289,7 @@ int main(int argc, char **argv) { cl::OptionCategory AnotherCategory("Some options"); - StringMap Map; - cl::getRegisteredOptions(Map); + StringMap &Map = cl::getRegisteredOptions(); //Unhide useful option and put it in a different category assert(Map.count("print-all-options") > 0);