Show More
@@ -74,6 +74,9 b' def swallow_argv(argv, aliases=None, flags=None):' | |||
|
74 | 74 | if a.startswith('-'): |
|
75 | 75 | split = a.lstrip('-').split('=') |
|
76 | 76 | name = split[0] |
|
77 | # we use startswith because argparse accepts any arg to be specified | |
|
78 | # by any leading section, as long as it is unique, | |
|
79 | # so `--no-br` means `--no-browser` in the notebook, etc. | |
|
77 | 80 | if any(alias.startswith(name) for alias in aliases): |
|
78 | 81 | stripped.remove(a) |
|
79 | 82 | if len(split) == 1: |
General Comments 0
You need to be logged in to leave comments.
Login now