add updates
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user