From 1b89bab4ee7ddc78d3801ef9de95e7b086d98612 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sun, 9 May 2021 15:32:31 +0300 Subject: [PATCH] *ignored --- srcxray.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcxray.py b/srcxray.py index d584be5..7313def 100755 --- a/srcxray.py +++ b/srcxray.py @@ -43,6 +43,7 @@ import xml.etree.ElementTree as ET default_root = 'starts' ignore = list() +ignored = set() show_ignored = False level_limit = 6 lines = 0 @@ -298,6 +299,7 @@ def call_tree(node, printed=None, level=0): if a in local_printed: continue if a in ignore: + ignored.add(a) if show_ignored: print_limited2((level + 1)*'\t' + '\033[2;30m' + a + (' ^' if a in local_printed else '') + @@ -1451,6 +1453,8 @@ def main(): else: ret = eval(a1 + '(' + ', '.join("'%s'" % (a) for a in sys.argv[1:]) + ')') + if ignored: + print("Ignored:", " ".join(ignored)) if isinstance(ret, nx.DiGraph): digraph_print(ret) elif isinstance(ret, bool) and ret is False: