mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated for flags error
This commit is contained in:
parent
8f2bdb5ea8
commit
1af73e6656
1 changed files with 5 additions and 2 deletions
|
@ -152,8 +152,11 @@ class Argparse:
|
|||
self.usage.help(1)
|
||||
|
||||
def update(self):
|
||||
if [f for f in self.flags if f not in [self.flag_yes]]:
|
||||
self.usage.help(1)
|
||||
command = Argparse.upgrade.__name__
|
||||
update_flags = [self.flag_yes]
|
||||
|
||||
if [f for f in self.flags if f not in update_flags]:
|
||||
self.usage.error_for_options(command, update_flags)
|
||||
|
||||
if len(self.args) == 1:
|
||||
update = UpdateRepository(self.flags)
|
||||
|
|
Loading…
Reference in a new issue