feat: add --set-env flag to set environment variables from command line

This commit is contained in:
Paul Gauthier (aider) 2024-12-07 08:05:57 -08:00
parent 66b99c4fa0
commit e41bf67f73
2 changed files with 18 additions and 0 deletions

View file

@ -772,6 +772,13 @@ def get_parser(default_config_files, git_root):
"--editor",
help="Specify which editor to use for the /editor command",
)
group.add_argument(
"--set-env",
action="append",
metavar="ENV_VAR_NAME=value",
help="Set an environment variable (can be used multiple times)",
default=[],
)
##########
group = parser.add_argument_group("Voice Settings")