mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
Updated for None args
This commit is contained in:
parent
c39e01d67c
commit
f447983e25
2 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue