master > master: code - minor
This commit is contained in:
parent
a95e3ed8c1
commit
964fd80888
@ -26,11 +26,11 @@ PATH_TO_CONFIG: str = 'code/config.yml';
|
|||||||
# MAIN PROCESS
|
# 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);
|
SetQuietMode(quiet);
|
||||||
SetDebugMode(debug);
|
SetDebugMode(debug);
|
||||||
configpath = PATH_TO_CONFIG if args.path is None else args.path;
|
configpath = path if isinstance(path, str) else PATH_TO_CONFIG;
|
||||||
if args.all is not None:
|
if mode_all is not None:
|
||||||
LoopThroughCases(path=configpath);
|
LoopThroughCases(path=configpath);
|
||||||
else:
|
else:
|
||||||
parser.print_help();
|
parser.print_help();
|
||||||
@ -88,4 +88,4 @@ if __name__ == '__main__':
|
|||||||
parser.add_argument('--debug', action='store_true', help='Debugging Messages stummschalten.')
|
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.')
|
parser.add_argument('-q', '--quiet', action='store_true', help='Alle console-messages bis auf Errors stummschalten.')
|
||||||
args = parser.parse_args(cli_args);
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user