mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +00:00
![]() # Context: USER: add args --user-input-color default green, --tool-output-color default None and --tool-error-color default red. pass them to InputOutput ASSISTANT: I will add the new arguments to the `main` function and pass them to the `InputOutput` class. ```python aider/main.py <<<<<<< ORIGINAL parser.add_argument( "--pretty", action="store_true", default=True, help="Enable pretty, colorized output (default: True)", ) parser.add_argument( "--no-pretty", action="store_false", dest="pretty", help="Disable pretty, colorized output", ) ======= parser.add_argument( "--pretty", action="store_true", default=True, help="Enable pretty, colorized output (default: True)", ) parser.add_argument( "--no-pretty", action="store_false", dest="pretty", help="Disable pretty, colorized output", ) parser.add_argument( "--user-input-color", default="green", help="Set the color for user input (default: green)", ) parser.add_argument( "--tool-output-color", default=None, help="Set the color for tool output (default: None)", ) parser.add_argument( "--tool-error-color", default="red", help="Set the color for tool error messages (default: red)", ) >>>>>>> UPDATED ``` ```python aider/main.py <<<<<<< ORIGINAL io = InputOutput( args.pretty, args.yes, args.input_history_file, args.chat_history_file, input=input, output=output, ) ======= io = InputOutput( args.pretty, args.yes, args.input_history_file, args.chat_history_file, input=input, output=output, user_input_color=args.user_input_color, tool_output_color=args.tool_output_color, tool_error_color=args.tool_error_color, ) >>>>>>> UPDATED ``` Now the new arguments are added and passed to the `InputOutput` class. |
||
---|---|---|
.. | ||
__init__.py | ||
coder.py | ||
commands.py | ||
dump.py | ||
io.py | ||
main.py | ||
prompts.py | ||
repomap.py | ||
utils.py |