Remove args check

This commit is contained in:
Dimitris Zlatanidis 2023-01-10 22:24:32 +02:00
parent 01e6aae836
commit cb5e1b7e2b

View file

@ -143,14 +143,8 @@ class Argparse:
flags = commands[command]
for opt in self.flags:
if opt.startswith('--'):
if opt not in flags and opt not in ['--help', '--version']:
self.usage.error_for_options(flags)
for arg in self.args:
if arg.startswith('--'):
if arg not in self.options and arg not in ['--help', '--version']:
self.usage.error_for_options(flags)
if opt not in flags and opt not in ['--help', '--version']:
self.usage.error_for_options(flags)
def choose_packages(self, packages, method):
""" Choose packages with dialog utility and --search flag. """