diff --git a/slpkg/main.py b/slpkg/main.py index 1aae426b..809f5fa0 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -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)