add updates

This commit is contained in:
WorldTeacher
2024-10-02 15:28:12 +02:00
parent f4bc3de357
commit 2836be7490
6 changed files with 149 additions and 41 deletions

View File

@@ -1,18 +1,12 @@
# import argparse
import sys
from config import Config#
import argparse
__version__ = "0.1.0"
__author__ = "Alexander Kirchner"
__email__ = "alexander.kirchner@ph-freiburg.de"
__license__ = "MIT"
config = Config("config/settings.yaml")
__version__ = "0.1.0"
# if programm launched with argument --debug, set debug to True
# if "--debug" in sys.argv:
# config.debug = True
# # if programm launched with argument --log, set log_debug
# if "--log" in sys.argv:
# config.log_debug = True
valid_args = ["--debug", "--log", "--no-backup", "--ic-logging", "--version", "-h"]
args_description = {
@@ -27,7 +21,8 @@ args_description = {
args = sys.argv[1:]
if any(arg not in valid_args for arg in args):
print("Invalid argument present")
sys.exit()
#sys.exit()
def help():
print("Ausleihsystem")
print("Ein Ausleihsystem für Handbibliotheken")