From 8543c36ffb594ce293a8da26278aaa670de093f2 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 8 May 2023 12:04:35 +0300 Subject: [PATCH] Updated for option --- slpkg/utilities.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/utilities.py b/slpkg/utilities.py index e8fe1d61..71113fff 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -102,10 +102,10 @@ class Utilities(Configs): return build @staticmethod - def is_option(flag: list, flags: list) -> bool: - """ Checking for flags. """ - for f in flag: - if f in flags: + def is_option(option: list, flags: list) -> bool: + """ Checking if the option is applied. """ + for opt in option: + if opt in flags: return True def read_packages_from_file(self, file: Path) -> Generator: