Skip to content

Commit b9fdbb0

Browse files
committed
#245: Use double dash to signal end of options, and beginning of positional parameters
1 parent fba0fae commit b9fdbb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aider/tools/grep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def execute(
167167
cmd_args.append("--exclude-dir=.git")
168168

169169
# Add pattern and directory path
170-
cmd_args.extend([pattern, str(search_dir_path)])
170+
cmd_args.extend(["--", pattern, str(search_dir_path)])
171171

172172
# Convert list to command string for run_cmd_subprocess
173173
command_string = oslex.join(cmd_args)

0 commit comments

Comments
 (0)