mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated main
This commit is contained in:
parent
77c0d9c1dc
commit
c39e01d67c
1 changed files with 3 additions and 2 deletions
|
@ -653,10 +653,11 @@ class Argparse(Configs):
|
||||||
def main():
|
def main():
|
||||||
args = sys.argv
|
args = sys.argv
|
||||||
args.pop(0)
|
args.pop(0)
|
||||||
|
usage = Usage()
|
||||||
|
|
||||||
# Fixes the IndexError.
|
# Fixes the IndexError.
|
||||||
if '' in args:
|
if '' in args:
|
||||||
Usage().help(1)
|
usage.help(1)
|
||||||
|
|
||||||
argparse = Argparse(args)
|
argparse = Argparse(args)
|
||||||
|
|
||||||
|
@ -704,7 +705,7 @@ def main():
|
||||||
argparse.check_for_flags(args[0])
|
argparse.check_for_flags(args[0])
|
||||||
arguments[args[0]]()
|
arguments[args[0]]()
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
Usage().help(1)
|
usage.help(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue