exit: +digraph_print
This commit is contained in:
parent
378b753c89
commit
5bebe62d3e
|
@ -614,6 +614,8 @@ def main():
|
||||||
else:
|
else:
|
||||||
ret = eval(sys.argv[1] + '(' + ', '.join("'%s'" % (a)
|
ret = eval(sys.argv[1] + '(' + ', '.join("'%s'" % (a)
|
||||||
for a in sys.argv[2:]) + ')')
|
for a in sys.argv[2:]) + ')')
|
||||||
|
if isinstance(ret, nx.DiGraph):
|
||||||
|
digraph_print(ret)
|
||||||
if isinstance(ret, bool) and ret is False:
|
if isinstance(ret, bool) and ret is False:
|
||||||
sys.exit(os.EX_CONFIG)
|
sys.exit(os.EX_CONFIG)
|
||||||
if (ret is not None):
|
if (ret is not None):
|
||||||
|
|
Loading…
Reference in New Issue