diff --git a/mdv/markdownviewer.py b/mdv/markdownviewer.py index cdd4d1a..8a59737 100755 --- a/mdv/markdownviewer.py +++ b/mdv/markdownviewer.py @@ -356,7 +356,7 @@ def parse_env_and_cli(): reqv, n = opts[k][:2] kw[n] = argv.pop(0) if reqv else True except: - if not argv: + if not argv or os.path.exists(k): kw['filename'] = k else: die('Not understood: %s' % k)