[sword-svn] r3622 - trunk/utilities
scribe at crosswire.org
scribe at crosswire.org
Sun May 5 11:26:51 MST 2019
Author: scribe
Date: 2019-05-05 11:26:51 -0700 (Sun, 05 May 2019)
New Revision: 3622
Modified:
trunk/utilities/installmgr.cpp
Log:
added option features list to installmgr -rdesc
Modified: trunk/utilities/installmgr.cpp
===================================================================
--- trunk/utilities/installmgr.cpp 2019-05-05 18:14:09 UTC (rev 3621)
+++ trunk/utilities/installmgr.cpp 2019-05-05 18:26:51 UTC (rev 3622)
@@ -31,6 +31,7 @@
#include <iostream>
#include <map>
#include <swmodule.h>
+#include <swoptfilter.h>
#include <stdio.h>
#include <swlog.h>
@@ -322,6 +323,14 @@
for (ConfigEntMap::const_iterator it = m->getConfig().begin(); it != m->getConfig().end(); ++it) {
cout << "[" << it->first << "]:" << it->second << "\n";
}
+ cout << "\nOption Features available for module: " << m->getName() << "\n\n";
+ for (OptionFilterList::const_iterator it = m->getOptionFilters().begin(); it != m->getOptionFilters().end(); ++it) {
+ cout << (*it)->getOptionName() << " (" << (*it)->getOptionTip() << ")\n";
+ StringList optionValues = (*it)->getOptionValues();
+ for (StringList::const_iterator it2 = optionValues.begin(); it2 != optionValues.end(); ++it2) {
+ cout << "\t" << *it2 << "\n";
+ }
+ }
}
More information about the sword-cvs
mailing list