From dc32c50b6bf57d88574fa5d3c5598b6c8ba14523 Mon Sep 17 00:00:00 2001 From: Damian Rouson Date: Sat, 24 Feb 2024 18:29:35 -0800 Subject: [PATCH] doc(fpm_command_line): fix help text Since version 0.8.0, fpm adds the `--flag` arguments to the default arguments. Overriding the defaults requires using the [fortran] keyword in the manifest. This commit edits the `--help` output to reflect the current behavior. --- src/fpm_command_line.f90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fpm_command_line.f90 b/src/fpm_command_line.f90 index 90e6a3f0fe..025cffa163 100644 --- a/src/fpm_command_line.f90 +++ b/src/fpm_command_line.f90 @@ -170,7 +170,8 @@ module fpm_command_line ' --flag FFLAGS selects compile arguments for the build, the default value is',& ' set by the FPM_FFLAGS environment variable. These are added ',& ' to the profile options if --profile is specified, else these ',& - ' options override the defaults. Note object and .mod ',& + ' are added to the defaults. To override the defaults, use the ',& + ' keyword [fortran] in the manifest. Note object and .mod ',& ' directory locations are always built in. ',& ' --c-flag CFLAGS selects compile arguments specific for C source in the build.',& ' The default value is set by the FPM_CFLAGS environment ',&