PlasmaFAIR/fortitude

Suggest that `iargc` and `getarg` be replaced by `command_argument_count` and `get_command_argument`

Open

#267 opened on Jan 9, 2025

View on GitHub
 (4 comments) (1 reaction) (0 assignees)Rust (33 forks)auto 404
good first issuerule

Repository metrics

Stars
 (207 stars)
PR merge metrics
 (PR metrics pending)

Description

For a code such as

PROGRAM test_getarg
  implicit none
  INTEGER :: i
  CHARACTER(len=32) :: arg
  DO i = 1, iargc()
    CALL getarg(i, arg)
    WRITE (*,*) arg
  END DO
END PROGRAM test_getarg

from the gfortran documentation, Fortitude could suggest that iargc and getarg be replaced by command_argument_count and get_command_argument.

Contributor guide