mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Remove args check
This commit is contained in:
parent
01e6aae836
commit
cb5e1b7e2b
1 changed files with 2 additions and 8 deletions
|
@ -143,14 +143,8 @@ class Argparse:
|
||||||
flags = commands[command]
|
flags = commands[command]
|
||||||
|
|
||||||
for opt in self.flags:
|
for opt in self.flags:
|
||||||
if opt.startswith('--'):
|
if opt not in flags and opt not in ['--help', '--version']:
|
||||||
if opt not in flags and opt not in ['--help', '--version']:
|
self.usage.error_for_options(flags)
|
||||||
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)
|
|
||||||
|
|
||||||
def choose_packages(self, packages, method):
|
def choose_packages(self, packages, method):
|
||||||
""" Choose packages with dialog utility and --search flag. """
|
""" Choose packages with dialog utility and --search flag. """
|
||||||
|
|
Loading…
Reference in a new issue