Skip to content

Commit df68c53

Browse files
committed
document response file
1 parent 75af0a2 commit df68c53

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/fpm_command_line.f90

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,37 @@ subroutine set_help()
698698
' --verbose Display additional information when available ', &
699699
' --version Show version information and exit. ', &
700700
' ', &
701+
'@file ', &
702+
' You may replace the default options for the fpm(1) command from a ', &
703+
' file if your first options begin with @file. Initial options will ', &
704+
' then be read from the "response file" "file.rsp" in the current ', &
705+
' directory. ', &
706+
' ', &
707+
' If "file" does not exist or cannot be read, then an error occurs and', &
708+
' the program stops. Each line of the file is prefixed with "options"', &
709+
' and interpreted as a separate argument. The file itself may not ', &
710+
' contain @file arguments. That is, it is not processed recursively. ', &
711+
' ', &
712+
' For more information on response files see ', &
713+
' ', &
714+
' https://urbanjost.github.io/M_CLI2/set_args.3m_cli2.html ', &
715+
' ', &
716+
' The basic functionality described here will remain the same, but ', &
717+
' other features described at the above reference may change. ', &
718+
' ', &
719+
' An example file: ', &
720+
' ', &
721+
' # my build options ', &
722+
' options build ', &
723+
' options --compiler gfortran ', &
724+
' options --flag "-pg -static -pthread -Wunreachable-code -Wunused \', &
725+
' -Wuninitialized -g -O -fbacktrace -fdump-core -fno-underscoring \', &
726+
' -frecord-marker=4 -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lX11" ', &
727+
' ', &
728+
' Note --flag would have to be on one line as response files do not ', &
729+
' (currently) allow for continued lines or multiple specifications of ', &
730+
' the same option. ', &
731+
' ', &
701732
'EXAMPLES ', &
702733
' sample commands: ', &
703734
' ', &

0 commit comments

Comments
 (0)