Browse code

Remove --filter restriction

Robert Cranston authored on 15/07/2022 11:02:40
Showing 2 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 About _xdot.py_
2 2
 =================
3 3
 
4
-This is a fork of [`jrfonseca/xdot.py`][].
4
+This is a fork of [`jrfonseca/xdot.py`][] that removes `--filter` restriction.
5 5
 
6 6
 _xdot.py_ is an interactive viewer for graphs written in [Graphviz](http://www.graphviz.org/)'s [dot language](http://www.graphviz.org/doc/info/lang.html).
7 7
 
... ...
@@ -46,9 +46,9 @@ Shortcuts:
46 46
         'inputfile', metavar='file', nargs='?',
47 47
         help='input file to be viewed')
48 48
     parser.add_argument(
49
-        '-f', '--filter', choices=['dot', 'neato', 'twopi', 'circo', 'fdp'],
49
+        '-f', '--filter', action='store',
50 50
         dest='filter', default='dot', metavar='FILTER',
51
-        help='graphviz filter: dot, neato, twopi, circo, or fdp [default: %(default)s]')
51
+        help='graphviz filter, e.g. dot, neato, twopi, circo, or fdp [default: %(default)s]')
52 52
     parser.add_argument(
53 53
         '-n', '--no-filter',
54 54
         action='store_const', const=None, dest='filter',