aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/find_program_version_argument.md
blob: 99fe621097761a135dd7576273a1cd3900c6ffce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
## New version_argument kwarg for find_program

When finding an external program with `find_program`, the `version_argument`
can be used to override the default `--version` argument when trying to parse
the version of the program.

For example, if the following is used:
```meson
foo = find_program('foo', version_argument: '-version')
```

meson will internally run `foo -version` when trying to find the version of `foo`.