From cab4292f02286cf29cc9f9f0d96b6d4d4821a1d8 Mon Sep 17 00:00:00 2001 From: Gunther Klessinger Date: Thu, 5 Oct 2023 00:01:16 +0200 Subject: [PATCH] feat: allow args after filename --- mdv/markdownviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)