cli_help_requested Function

private pure function cli_help_requested(this) result(r)

Whether -h or --help was given.

The caller decides what to do about it. See “The library never prints”.

Type Bound

cli_t

Arguments

Type IntentOptional Attributes Name
class(cli_t), intent(in) :: this

Return Value logical


Source Code

   pure function cli_help_requested(this) result(r)
      !! Whether `-h` or `--help` was given.
      !!
      !! The caller decides what to do about it. See "The library never
      !! prints".
      class(cli_t), intent(in) :: this
      logical :: r

      r = this%wants_help
   end function cli_help_requested