diff --git a/ChangeLog.txt b/ChangeLog.txt index 0911d036..3754421f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,4 +1,7 @@ -4.6.0 - 14/03/2023 +4.6.1 - 15/03/2023 +Updated: +- For None args + Updated: - Dialog text help for dependencies - For configs error messages diff --git a/slpkg/main.py b/slpkg/main.py index 303597c0..4a507a89 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -52,7 +52,7 @@ class Argparse(Configs): if self.file_pattern_conf: self.file_pattern = self.file_pattern_conf - if len(self.args) == 0: + if len(self.args) == 0 or '' in self.args: self.usage.help_short() self.check.is_blacklist(self.args) @@ -655,10 +655,6 @@ def main(): args.pop(0) usage = Usage() - # Fixes the IndexError. - if '' in args: - usage.help(1) - argparse = Argparse(args) arguments: dict = {