From 180619bb0c7205dab52528adb5f4ad2007ab8a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20Dr=C3=B6ge?= Date: Thu, 10 Sep 2026 16:00:45 +0200 Subject: [PATCH] feat: Don't pass the literal "--" argument along --- legendary/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index efcc9c0..43235c0 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -3129,6 +3129,10 @@ def main(): for key, value in global_args.__dict__.items(): setattr(args, key, value) + # Don't pass along the literal "--" if it is added to signal the end of Legendary's arguments + if extra and extra[0] == '--': + extra.pop(0) + if args.version: print(f'legendary version "{__version__}", codename "{__codename__}"') exit(0)