summaryrefslogtreecommitdiffstats
path: root/lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib.py')
-rw-r--r--lib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib.py b/lib.py
index 6d1fec8..87bfb81 100644
--- a/lib.py
+++ b/lib.py
@@ -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)