usage_and_stop Subroutine

private subroutine usage_and_stop(msg)

Print a usage message and terminate with a non-zero exit status.

Arguments

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

Calls

proc~~usage_and_stop~~CallsGraph proc~usage_and_stop usage_and_stop colorize colorize proc~usage_and_stop->colorize proc~usage_print_only usage_print_only proc~usage_and_stop->proc~usage_print_only proc~usage_print_only->colorize

Called by

proc~~usage_and_stop~~CalledByGraph proc~usage_and_stop usage_and_stop proc~apply_watch_flag apply_watch_flag proc~apply_watch_flag->proc~usage_and_stop proc~parse_cli parse_cli proc~parse_cli->proc~usage_and_stop proc~parse_cli->proc~apply_watch_flag proc~parse_cli_config parse_cli_config proc~parse_cli_config->proc~parse_cli

Source Code

   subroutine usage_and_stop(msg)
      character(len=*), intent(in) :: msg
      write(error_unit,'(a)') &
         colorize("fpm-watch: error:", color_fg='red_intense', style='bold_on') // " " // trim(msg)
      write(error_unit,'(a)') ""
      call usage_print_only()
      stop 2
   end subroutine usage_and_stop