Updated for None args

This commit is contained in:
Dimitris Zlatanidis 2023-03-15 22:10:43 +02:00
parent c39e01d67c
commit f447983e25
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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 = {