improvements to confTool.py --structured
New confTool.py
options:
--classes Only show class names
--uniqueClasses Only show unique classes
--includeClasses INCLUDECLASSES
Only list the components selected by the given classname (anchored regular expression)
--excludeClasses EXCLUDECLASSES
Don't list the components excluded by the given classname (anchored regular expression)
--excludeComponents EXCLUDECOMPONENTS
Don't list these components (anchored regular expression)
--includeClassesSub INCLUDECLASSESSUB
Below the top-level, also include the components selected by the given classname (anchored regular expression)
--includeSequences Include sequences in the structured printout
--showComponentName Show component name with --classes
--maxDepth MAXDEPTH Maximum depth for structured printout
-q, --quiet Don't print command arguments
So the command:
confTool.py -q -s ApplicationMgr --uniqueClasses --includeSequences --skipProperties --ignoreIrrelevant file.pkl
produces a compact hierarchical list of all the classes in the ApplicationMgr
sequences with duplicate hierarchies suppressed.
This MR also adds in protection against recursive expansion of components. This can happen if a property value has the same name as a component name.