mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Remove args check
This commit is contained in:
parent
01e6aae836
commit
cb5e1b7e2b
1 changed files with 2 additions and 8 deletions
|
@ -143,15 +143,9 @@ 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. """
|
||||||
height = 10
|
height = 10
|
||||||
|
|
Loading…
Reference in a new issue