Lahey/GNU Fortran

Command Files

If you have too many options and files to fit on the command line, you can place them in a command file. Enter LGF command line arguments in a command file in exactly the same manner as on the command line. Command files may have as many lines as needed. Lines beginning with an initial # are comments.

To process a command file, preface the name of the file with the @ character. When LGF encounters a filename that begins with @ on the command line, it opens the file and processes the commands in it.


LGF @mycmds

In this example, LGF reads its options from the file mycmds

Command files may be used both with other command-line options and other command files. Multiple command files are processed left to right in the order they are encountered.