mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
WIP: Refactor CLI help messages to use $ prefix for environment variables.
This commit is contained in:
parent
39046a455c
commit
cb63d15b52
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -19,7 +19,7 @@ def main():
|
||||||
"--history-file",
|
"--history-file",
|
||||||
metavar="HISTORY_FILE",
|
metavar="HISTORY_FILE",
|
||||||
default=os.environ.get("CODER_HISTORY_FILE", ".coder.history"),
|
default=os.environ.get("CODER_HISTORY_FILE", ".coder.history"),
|
||||||
help="Specify the history file (default: .coder.history, env: CODER_HISTORY_FILE)",
|
help="Specify the history file (default: .coder.history, $CODER_HISTORY_FILE)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--model",
|
"--model",
|
||||||
|
@ -45,7 +45,7 @@ def main():
|
||||||
"--no-pretty",
|
"--no-pretty",
|
||||||
action="store_false",
|
action="store_false",
|
||||||
dest="pretty",
|
dest="pretty",
|
||||||
help="Disable prettyd output of GPT responses (env: CODER_PRETTY)",
|
help="Disable pretty output of GPT responses ($CODER_PRETTY)",
|
||||||
default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))),
|
default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -56,7 +56,7 @@ def main():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--commit-dirty",
|
"--commit-dirty",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Commit dirty files without confirmation (default: False, env: CODER_COMMIT_DIRTY)",
|
help="Commit dirty files without confirmation (default: False, $CODER_COMMIT_DIRTY)",
|
||||||
default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
|
default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -78,4 +78,4 @@ def main():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
status = main()
|
status = main()
|
||||||
sys.exit(status)
|
sys.exit(status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue