Detect whether an argv token is a watcher-specific flag.
Watcher flags are of the form --watch-* and are consumed by fpm-watch
itself rather than forwarded to fpm.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | a |
pure logical function is_watch_flag(a) result(ok) character(len=*), intent(in) :: a ok = (len_trim(a) >= 8 .and. a(1:8) == "--watch-") end function is_watch_flag