askeco / src_info_hf /api.get_modules.txt
gofeco's picture
Upload 100 files
b8d41f7 verified
raw
history blame
642 Bytes
<h3 id='___get_modules'>get_modules</h3>
<pre>Get all hierarchical modules under current module
<b>Usage:</b> @modules = get_modules($pattern, @options);
$pattern: Match pattern, can have wildcard "*", if it is empty, it is treated as "*"
@options:
-help: Print this information
-hier: Get all modules hierarchically
@modules: Modules list, ("module0", "module1", ...)
<b>Examples:</b>
@modules = get_modules("*TM*"); # Any hierarchical modules with TM in the name.
@modules = get_modules; # All hierarchical modules.
@modules = get_modules("-hier"); # All hierarchical modules and sub-modules under current module.
</pre>