search.py: force the use of keyword arguments in locate_files

This commit is contained in:
Eric Torres 2022-02-10 12:58:49 -08:00
parent 8dae78c735
commit 7ce399e843

View File

@ -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