From 2340bd161e1d5db76b24d20915cc9fbd275d5a37 Mon Sep 17 00:00:00 2001 From: Bob Steers Date: Tue, 13 Feb 2024 20:25:01 +0100 Subject: [PATCH] correctly prefix parsed cmd args --- parse_appenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse_appenv.py b/parse_appenv.py index e2ec99b..a21912d 100644 --- a/parse_appenv.py +++ b/parse_appenv.py @@ -23,7 +23,7 @@ def parse_cmd_args(raw_args: list[str]) -> tuple[argparse.Namespace, list[str]]: args, unknown = parse_cmd_args(sys.argv[1:]) if unknown: print(f'WARNING: ignoring unknown CMD arguments: {unknown}', file=sys.stderr) - output = [f'brewblox_{k}={shlex.quote(str(v))}' + output = [f'brewblox_history_{k}={shlex.quote(str(v))}' for k, v in vars(args).items() if v is not None and v is not False] print(*output, sep='\n')