From 7ce399e8438c7522dbd4405761332f85fd93e454 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 10 Feb 2022 12:58:49 -0800 Subject: [PATCH] search.py: force the use of keyword arguments in locate_files --- file_scripts/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file_scripts/search.py b/file_scripts/search.py index edeb471..024c764 100644 --- a/file_scripts/search.py +++ b/file_scripts/search.py @@ -30,6 +30,7 @@ elif platform == "darwin": # ========== Functions ========== def find_files( + *, opts=DEFAULT_FIND_OPTS, directory=None, capture_text=None, @@ -81,7 +82,7 @@ def find_files( return subprocess.run(cmd, capture_output=True, text=capture_text).stdout -def locate_files(patterns, bin_override=None, capture_text=None): +def locate_files(patterns, *, bin_override=None, capture_text=None): """Use a locate-based program to locate files, then pass to fzf. :param patterns: patterns to pass to locate