feat: Don't pass the literal "--" argument along

This commit is contained in:
Katharina Dröge 2026-09-10 16:00:45 +02:00
parent 0d31337e1d
commit 180619bb0c
No known key found for this signature in database
GPG key ID: 3D586C5E334E5A26

View file

@ -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)