add_cli_options Subroutine

subroutine add_cli_options(cli)

Arguments

Type IntentOptional Attributes Name
type(command_line_interface), intent(inout) :: cli

Calls

proc~~add_cli_options~2~~CallsGraph proc~add_cli_options~2 add_cli_options add add proc~add_cli_options~2->add

Called by

proc~~add_cli_options~2~~CalledByGraph proc~add_cli_options~2 add_cli_options program~main~16 main program~main~16->proc~add_cli_options~2

Source Code

   subroutine add_cli_options(cli)
      type (command_line_interface), intent(inout) :: cli

      call cli%add(switch='--im',  &
                  help='IM World', &
                  required=.true., &
                  act='store')

      call cli%add(switch='--lm',  &
                  help='# levels per field', &
                  required=.true., &
                  act='store')

      call cli%add(switch='--n_fields',  &
                  help='# of fields', &
                  required=.true., &
                  act='store')
      
      call cli%add(switch='-o',  &
                  help='output file name', &
                  required=.true., &
                  act='store')
   end subroutine add_cli_options