aider: Changed nargs attribute of "files" argument to make it optional.

# Context:
USER: make the file args optionall. the user can run the command without specifying files.
ASSISTANT: To make the file arguments optional, we need to change the nargs attribute of the "files" argument in the ArgumentParser.

```python
aider/main.py
<<<<<<< ORIGINAL
    parser.add_argument(
        "files",
        metavar="FILE",
        nargs="+",
        help="a list of source code files",
    )
=======
    parser.add_argument(
        "files",
        metavar="FILE",
        nargs="*",
        help="a list of source code files (optional)",
    )
>>>>>>> UPDATED
```
This commit is contained in:
Paul Gauthier 2023-05-10 19:28:58 -07:00
parent 775fbe95f9
commit 6e1282202d

View file

@ -14,8 +14,8 @@ def main():
parser.add_argument(
"files",
metavar="FILE",
nargs="+",
help="a list of source code files",
nargs="*",
help="a list of source code files (optional)",
)
parser.add_argument(
"--history-file",