From 6845f32f3928c995e0043b5b272f2815ef0967da Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 17 Mar 2023 21:39:52 +0200 Subject: [PATCH] Updated for recurring options --- slpkg/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slpkg/main.py b/slpkg/main.py index 618ef4e0..fdc4cc78 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -283,6 +283,9 @@ class Argparse(Configs): if opt[0] == '-' and opt in self.options: if self.flags.count(opt) > 1: repeat.append(opt) + if len(opt) > 2: + if opt == self.options[self.options.index(opt)]: + repeat.append(opt) # Fixed for recurring options. if repeat: