aider: Changed the --ctags switch into --map-tokens, which is an int that defaults to 1024.

# Context:
USER: change the --ctags switch into --map-tokens, which is an int that defaults to 1024
ASSISTANT: To make this change, I need to modify the `aider/main.py` file. Please make it *read-write* and let me know when it's done.
USER: I added these *read-write* files: aider/main.py
ASSISTANT: Great! I will now modify the `aider/main.py` file to change the `--ctags` switch into `--map-tokens`, which is an int that defaults to 1024.

```python
aider/main.py
<<<<<<< ORIGINAL
    parser.add_argument(
        "--ctags",
        type=lambda x: (str(x).lower() == "true"),
        nargs="?",
        const=True,
        default=None,
        help=(
            "Add ctags to the chat to help GPT understand the codebase (default: check for ctags"
            " executable)"
        ),
    )
=======
    parser.add_argument(
        "--map-tokens",
        type=int,
        default=1024,
        help="Number of tokens to map for code understanding (default: 1024)",
    )
>>>>>>> UPDATED
```

This change replaces the `--ctags` argument with the `--map-tokens` argument, which takes an integer value and defaults to 1024.
This commit is contained in:
Paul Gauthier 2023-06-03 17:46:11 -07:00
parent 05e3d2bfdb
commit dcdad393c8

View file

@ -163,15 +163,10 @@ def main(args=None, input=None, output=None):
default=False,
)
parser.add_argument(
"--ctags",
type=lambda x: (str(x).lower() == "true"),
nargs="?",
const=True,
default=None,
help=(
"Add ctags to the chat to help GPT understand the codebase (default: check for ctags"
" executable)"
),
"--map-tokens",
type=int,
default=1024,
help="Number of tokens to map for code understanding (default: 1024)",
)
parser.add_argument(
"--yes",