diff options
-rw-r--r-- | lib.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -480,7 +480,8 @@ def xdot_graph(*args, **kwargs): @export def main(graph, argv, *args, **kws): - x, argv = (1, argv[1:]) if len(argv) > 1 and argv[1] == '-x' else (0, argv) + # -x deprecated, supported for backward compatibility + x, argv = (1, argv[1:]) if len(argv) <= 1 or argv[1] == '-x' else (0, argv) output = kws.pop('output', 'sinenomine') if x: xdot_graph(graph, **kws) |