aider: Added a --completions-height command line parameter to aider/main.py.

# Context:
USER: add a --completions-height cmd line param to `aider/main.py`
ASSISTANT: I will add a `--completions-height` command line parameter to `aider/main.py`. This parameter will allow users to set the height of the completions displayed in the terminal.

Here's the change to add the `--completions-height` parameter:

```python
aider/main.py
<<<<<<< ORIGINAL
    parser.add_argument(
        "--no-dirty-commits",
        action="store_false",
        dest="dirty_commits",
        help="Disable dirty commit of changes",
    )
=======
    parser.add_argument(
        "--no-dirty-commits",
        action="store_false",
        dest="dirty_commits",
        help="Disable dirty commit of changes",
    )
    parser.add_argument(
        "--completions-height",
        type=int,
        default=10,
        metavar="COMPLETIONS_HEIGHT",
        help="Set the height of the completions displayed in the terminal (default: 10)",
    )
>>>>>>> UPDATED
```

This will add a new command line argument `--completions-height` with a default value of 10. Users can now set the height of the completions displayed in the terminal by providing a value for this argument.
This commit is contained in:
Paul Gauthier 2023-05-29 17:32:02 -07:00
parent a7ab3d5d78
commit c9ebbdf0c0

View file

@ -144,6 +144,13 @@ def main(args=None, input=None, output=None):
dest="dirty_commits", dest="dirty_commits",
help="Disable dirty commit of changes", help="Disable dirty commit of changes",
) )
parser.add_argument(
"--completions-height",
type=int,
default=10,
metavar="COMPLETIONS_HEIGHT",
help="Set the height of the completions displayed in the terminal (default: 10)",
)
parser.add_argument( parser.add_argument(
"--openai-api-key", "--openai-api-key",
metavar="OPENAI_API_KEY", metavar="OPENAI_API_KEY",