diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-03-30 22:57:57 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-03-31 22:52:31 -0400 |
commit | 3455f21f72fdc66f35479e01cf9d1fff50665c16 (patch) | |
tree | 6aee30fb0b9dae69a68ebb84a478a25d068a861f | |
parent | a7356f6bf26f6f734e5d9293293498a668d35c6b (diff) | |
download | meson-3455f21f72fdc66f35479e01cf9d1fff50665c16.zip meson-3455f21f72fdc66f35479e01cf9d1fff50665c16.tar.gz meson-3455f21f72fdc66f35479e01cf9d1fff50665c16.tar.bz2 |
docs: note that find_program accepts file objects
This was implemented in commit 280346da3ac5904ec097afe89ef45ad34bd4a173
but never properly documented (it predated the version-controlled docs).
-rw-r--r-- | docs/yaml/functions/find_program.yaml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/yaml/functions/find_program.yaml b/docs/yaml/functions/find_program.yaml index a1dbb41..c0c13d2 100644 --- a/docs/yaml/functions/find_program.yaml +++ b/docs/yaml/functions/find_program.yaml @@ -46,15 +46,17 @@ description: | posargs: program_name: - type: str - description: The name of the program to search + type: str | file + description: | + The name of the program to search, or a [[@file]] object to be used + without searching. varargs: name: fallback - type: str + type: str | file since: 0.37.0 description: | - These parameters are used as fallback strings to search for. + These parameters are used as fallback names to search for. This is meant to be used for cases where the program may have many alternative names, such as `foo` and `foo.py`. The function will check for the arguments one by one and the |