521
522
523
524
525
526
528 use dc_string, only: stoa, stoi
529 use dc_trace, only: setdebug
530 use dc_message, only: messagenotify
531 implicit none
532 type(ARGS), intent(inout) :: arg
533 logical :: OPT_debug
534 character(STRING) :: VAL_debug
535 character(len = *), parameter :: subname = 'DCArgsDebug'
536 continue
537 if (.not. arg % initialized) then
538 call messagenotify('W', subname, 'Call Open before Debug in dc_args.')
539 call dcargsopen(arg)
540 end if
541 call option(arg, stoa('-D', '--debug'), opt_debug, val_debug, &
542 & help="call dc_trace#SetDebug (display a lot of messages for debug). " // &
543 & "VAL is unit number (default is standard output)")
544 if (opt_debug) then
545 if (trim(val_debug) == '') then
546 call setdebug
547 else
548 call setdebug(stoi(val_debug))
549 end if
550 end if
551 return
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ