is_watch_flag Function

private pure function is_watch_flag(a) result(ok)

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.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: a

Return Value logical


Called by

proc~~is_watch_flag~~CalledByGraph proc~is_watch_flag is_watch_flag proc~parse_cli parse_cli proc~parse_cli->proc~is_watch_flag proc~parse_cli_config parse_cli_config proc~parse_cli_config->proc~parse_cli

Source Code

   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