diff --git a/code/main.py b/code/main.py index 8537c42..e6e757e 100644 --- a/code/main.py +++ b/code/main.py @@ -26,11 +26,11 @@ PATH_TO_CONFIG: str = 'code/config.yml'; # MAIN PROCESS # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -def enter(quiet: bool, debug: bool, path: Union[str, Any], **_): +def enter(quiet: bool, debug: bool, mode_all: Any, path: Any, **_): SetQuietMode(quiet); SetDebugMode(debug); - configpath = PATH_TO_CONFIG if args.path is None else args.path; - if args.all is not None: + configpath = path if isinstance(path, str) else PATH_TO_CONFIG; + if mode_all is not None: LoopThroughCases(path=configpath); else: parser.print_help(); @@ -88,4 +88,4 @@ if __name__ == '__main__': 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.') args = parser.parse_args(cli_args); - enter(quiet=args.quiet, debug=args.debug, path=args.path); + enter(quiet=args.quiet, debug=args.debug, mode_all=args.all, path=args.path);