master > master: code - minor

This commit is contained in:
RD 2021-10-24 13:22:55 +02:00
parent a95e3ed8c1
commit 964fd80888
1 changed files with 4 additions and 4 deletions

View File

@ -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);