libsim Versione 7.2.1
|
◆ optionparser_add_d()
Add a new option with a double precision type argument. When parsing will be performed, if the requested option is encountered, its corresponding compulsory argument will be copied into the provided destination. An optional default value can be provided for the destination. Please use the generic optionparser_add method rather than this particular method.
Definizione alla linea 1309 del file optionparser_class.F90. 1310INTEGER :: i
1311
1312DO i = 1, this%options%arraysize ! loop over options
1313 CALL option_format_htmlform(this%options%array(i))
1314ENDDO
1315
1316WRITE(*,'(A)')'<input class="libsim_sub" type="submit" value="runprogram" />'
1317
1318END SUBROUTINE optionparser_printhelphtmlform
1319
1320
1321SUBROUTINE optionparser_make_completion(this)
1322TYPE(optionparser),INTENT(in) :: this
1323
1324INTEGER :: i
1325CHARACTER(len=512) :: buf
1326
1327CALL getarg(0, buf)
1328
1329WRITE(*,'(A/A/A)')'_'//trim(buf)//'()','{','local cur'
1330
1331WRITE(*,'(A/A/A/A)')'COMPREPLY=()','cur=${COMP_WORDS[COMP_CWORD]}', &
1332 'case "$cur" in','-*)'
1333
1334!-*)
1335! COMPREPLY=( $( compgen -W
1336DO i = 1, this%options%arraysize ! loop over options
1337 IF (this%options%array(i)%need_arg == 2) THEN
1338 ENDIF
1339ENDDO
1340
1341WRITE(*,'(A/A/A)')'esac','return 0','}'
|