mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
23 lines
559 B
Python
Executable file
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)
|