Skip to content

Commit

Permalink
correctly prefix parsed cmd args
Browse files Browse the repository at this point in the history
  • Loading branch information
steersbob committed Feb 13, 2024
1 parent 6a9a9f1 commit 2340bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse_appenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 2340bd1

Please sign in to comment.