master > master: code - entrance zum Programm jetzt mit basictypen

This commit is contained in:
RD 2021-10-23 13:23:07 +02:00
parent a83c5a91fc
commit 799b91c2d5
1 changed files with 5 additions and 4 deletions

View File

@ -26,9 +26,9 @@ PATH_TO_CONFIG: str = 'code/config.yml';
# MAIN PROCESS
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def enter(args: argparse.Namespace):
SetQuietMode(args.quiet);
SetDebugMode(args.debug);
def enter(quiet: bool, debug: bool, path: Union[str, Any], **_):
SetQuietMode(quiet);
SetDebugMode(debug);
configpath = PATH_TO_CONFIG if args.path is None else args.path;
if args.all is not None:
LoopThroughCases(path=configpath);
@ -114,4 +114,5 @@ if __name__ == '__main__':
parser.add_argument('config', nargs='?', help='Führt alle Testfälle in der config.yml Datei durch.');
parser.add_argument('--debug', action='store_true', help='Debugging Messages stummschalten.')
parser.add_argument('-q', '--quiet', action='store_true', help='Alle console-messages bis auf Errors stummschalten.')
enter(parser.parse_args(cli_args));
args = parser.parse_args(cli_args);
enter(quiet=args.quiet, debug=args.debug, path=args.path);