subroutineapply_args
subroutine apply_args(parsed, s, stat, errmsg)
Apply command line options to the settings.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| parsed | type(args_t) | in | the command line | |
| s | type(settings_t) | inout | the settings | |
| stat | integer | out | nonzero on failure | |
| errmsg | character(len=:) | out | allocatable | what is wrong |
Calls
Source
Show the code
subroutine apply_args(parsed, s, stat, errmsg)
type(args_t), intent(in) :: parsed !! the command line
type(settings_t), intent(inout) :: s !! the settings
integer, intent(out) :: stat !! nonzero on failure
character(len=:), allocatable, intent(out) :: errmsg !! what is wrong
integer :: k
stat = 0
do k = 1, size(parsed%options)
call set_option(s, parsed%options(k)%key, parsed%options(k)%values, stat, errmsg)
if (stat /= 0) return
end do
end subroutine apply_args