parse_cli_arguments Subroutine

subroutine parse_cli_arguments(cli, im, lm, n_fields, output_filename)

Arguments

Type IntentOptional Attributes Name
type(command_line_interface), intent(inout) :: cli
integer, intent(out) :: im
integer, intent(out) :: lm
integer, intent(out) :: n_fields
character(len=:), intent(out), allocatable :: output_filename

Calls

proc~~parse_cli_arguments~~CallsGraph proc~parse_cli_arguments parse_cli_arguments get get proc~parse_cli_arguments->get

Called by

proc~~parse_cli_arguments~~CalledByGraph proc~parse_cli_arguments parse_cli_arguments program~main~16 main program~main~16->proc~parse_cli_arguments

Source Code

   subroutine parse_cli_arguments(cli, im, lm, n_fields, output_filename)
      type (command_line_interface), intent(inout) :: cli
      integer, intent(out) :: im
      integer, intent(out) :: lm
      integer, intent(out) :: n_fields
      character(:), allocatable, intent(out) :: output_filename


      character(1000) :: buffer
      call cli%get(switch='--im', val=im)
      call cli%get(switch='--lm', val=lm)
      call cli%get(switch='--n_fields', val=n_fields)
      call cli%get(switch='-o', val=buffer)
      output_filename = trim(buffer)

   end subroutine parse_cli_arguments