mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
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:
parent
775fbe95f9
commit
6e1282202d
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue