slpkg/bin/slpkg
Dimitris Zlatanidis 0dddfdcdd6 Remove unused
2023-04-25 23:58:57 +03:00

23 lines
559 B
Python
Executable file

#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from slpkg.new_config import NewConfig
args = sys.argv
args.pop(0)
# slpkg new-config it works outside from the main arguments because of the load configurations settings.
if len(args) == 1 and args[0] == '-x' or len(args) == 1 and args[0] == 'new-config':
options: list = []
new_config = NewConfig(options)
new_config.check()
raise SystemExit(0)
from slpkg.main import main
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
raise SystemExit(1)