@@ -776,21 +776,22 @@ subroutine set_help()
776
776
help_list_dash = [character (len= 80 ) :: &
777
777
' ' , &
778
778
' build [--compiler COMPILER_NAME] [--profile PROF] [--flag FFLAGS] [--list] ' , &
779
- ' [--tests] [--no-prune] ' , &
779
+ ' [--tests] [--no-prune] [--config-file PATH] ' , &
780
780
' help [NAME(s)] ' , &
781
781
' new NAME [[--lib|--src] [--app] [--test] [--example]]| ' , &
782
782
' [--full|--bare][--backfill] ' , &
783
- ' update [NAME(s)] [--fetch-only] [--clean] [--verbose] ' , &
783
+ ' update [NAME(s)] [--fetch-only] [--clean] [--verbose] [--config-file PATH] ' , &
784
784
' list [--list] ' , &
785
785
' run [[--target] NAME(s) [--example] [--profile PROF] [--flag FFLAGS] [--all] ' , &
786
786
' [--runner "CMD"] [--compiler COMPILER_NAME] [--list] [-- ARGS] ' , &
787
+ ' [--config-file PATH] ' , &
787
788
' test [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS] [--runner "CMD"] ' , &
788
- ' [--list] [--compiler COMPILER_NAME] [-- ARGS] ' , &
789
+ ' [--list] [--compiler COMPILER_NAME] [--config-file PATH] [-- ARGS] ' , &
789
790
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ' , &
790
- ' [options] ' , &
791
- ' clean [--skip] [--all] ' , &
791
+ ' [--config-file PATH] [options] ' , &
792
+ ' clean [--skip] [--all] [--config-file PATH] ' , &
792
793
' publish [--token TOKEN] [--show-package-version] [--show-upload-data] ' , &
793
- ' [--dry-run] [--verbose] ' , &
794
+ ' [--dry-run] [--verbose] [--config-file PATH] ' , &
794
795
' ' ]
795
796
help_usage= [character (len= 80 ) :: &
796
797
' ' ]
@@ -900,22 +901,23 @@ subroutine set_help()
900
901
' Their syntax is ' , &
901
902
' ' , &
902
903
' build [--profile PROF] [--flag FFLAGS] [--list] [--compiler COMPILER_NAME] ' , &
903
- ' [--tests] [--no-prune] ' , &
904
+ ' [--tests] [--no-prune] [--config-file PATH] ' , &
904
905
' new NAME [[--lib|--src] [--app] [--test] [--example]]| ' , &
905
906
' [--full|--bare][--backfill] ' , &
906
- ' update [NAME(s)] [--fetch-only] [--clean] ' , &
907
+ ' update [NAME(s)] [--fetch-only] [--clean] [--config-file PATH] ' , &
907
908
' run [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS] [--list] [--all] ' , &
908
909
' [--example] [--runner "CMD"] [--compiler COMPILER_NAME] ' , &
909
- ' [--no-prune] [-- ARGS] ' , &
910
+ ' [--no-prune] [-- ARGS] [--config-file PATH] ' , &
910
911
' test [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS] [--list] ' , &
911
912
' [--runner "CMD"] [--compiler COMPILER_NAME] [--no-prune] [-- ARGS] ' , &
913
+ ' [--config-file PATH] ' , &
912
914
' help [NAME(s)] ' , &
913
915
' list [--list] ' , &
914
916
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ' , &
915
- ' [options] ' , &
916
- ' clean [--skip] [--all] ' , &
917
+ ' [options] [--config-file PATH] ' , &
918
+ ' clean [--skip] [--all] [--config-file PATH] ' , &
917
919
' publish [--token TOKEN] [--show-package-version] [--show-upload-data] ' , &
918
- ' [--dry-run] [--verbose] ' , &
920
+ ' [--dry-run] [--verbose] [--config-file PATH] ' , &
919
921
' ' , &
920
922
' SUBCOMMAND OPTIONS ' , &
921
923
' -C, --directory PATH' , &
@@ -1017,9 +1019,9 @@ subroutine set_help()
1017
1019
' run(1) - the fpm(1) subcommand to run project applications ' , &
1018
1020
' ' , &
1019
1021
' SYNOPSIS ' , &
1020
- ' fpm run [[--target] NAME(s) [--profile PROF] [--flag FFLAGS]' , &
1022
+ ' fpm run [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS]' , &
1021
1023
' [--compiler COMPILER_NAME] [--runner "CMD"] [--example]' , &
1022
- ' [--list] [--all] [-- ARGS]' , &
1024
+ ' [--list] [--all] [--config-file PATH] [-- ARGS]' , &
1023
1025
' ' , &
1024
1026
' fpm run --help|--version ' , &
1025
1027
' ' , &
@@ -1041,8 +1043,9 @@ subroutine set_help()
1041
1043
' any single character and "*" represents any string. ' , &
1042
1044
' Note The glob string normally needs quoted to ' , &
1043
1045
' the special characters from shell expansion. ' , &
1044
- ' --all Run all examples or applications. An alias for --target '' *'' .' , &
1046
+ ' --all Run all examples or applications. An alias for --target '' *'' . ' , &
1045
1047
' --example Run example programs instead of applications. ' , &
1048
+ ' --config-file PATH Custom location of the global config file. ' , &
1046
1049
help_text_build_common, &
1047
1050
help_text_compiler, &
1048
1051
help_text_flag, &
@@ -1088,7 +1091,7 @@ subroutine set_help()
1088
1091
' ' , &
1089
1092
' SYNOPSIS ' , &
1090
1093
' fpm build [--profile PROF] [--flag FFLAGS] [--compiler COMPILER_NAME] ' , &
1091
- ' [--list] [--tests] ' , &
1094
+ ' [--list] [--tests] [--config-file PATH] ' , &
1092
1095
' ' , &
1093
1096
' fpm build --help|--version ' , &
1094
1097
' ' , &
@@ -1113,12 +1116,13 @@ subroutine set_help()
1113
1116
help_text_build_common,&
1114
1117
help_text_compiler, &
1115
1118
help_text_flag, &
1116
- ' --list list candidates instead of building or running them ' , &
1117
- ' --tests build all tests (otherwise only if needed) ' , &
1118
- ' --show-model show the model and exit (do not build) ' , &
1119
- ' --help print this help and exit ' , &
1120
- ' --version print program version information and exit ' , &
1121
- ' ' , &
1119
+ ' --list list candidates instead of building or running them' , &
1120
+ ' --tests build all tests (otherwise only if needed) ' , &
1121
+ ' --show-model show the model and exit (do not build) ' , &
1122
+ ' --help print this help and exit ' , &
1123
+ ' --version print program version information and exit ' , &
1124
+ ' --config-file PATH custom location of the global config file ' , &
1125
+ ' ' , &
1122
1126
help_text_environment, &
1123
1127
' ' , &
1124
1128
' EXAMPLES ' , &
@@ -1268,8 +1272,9 @@ subroutine set_help()
1268
1272
' test(1) - the fpm(1) subcommand to run project tests ' , &
1269
1273
' ' , &
1270
1274
' SYNOPSIS ' , &
1271
- ' fpm test [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS]' , &
1272
- ' [--compiler COMPILER_NAME ] [--runner "CMD"] [--list][-- ARGS]' , &
1275
+ ' fpm test [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS] ' , &
1276
+ ' [--compiler COMPILER_NAME ] [--runner "CMD"] [--list] ' , &
1277
+ ' [-- ARGS] [--config-file PATH] ' , &
1273
1278
' ' , &
1274
1279
' fpm test --help|--version ' , &
1275
1280
' ' , &
@@ -1292,6 +1297,7 @@ subroutine set_help()
1292
1297
' see "fpm help runner" for further details. ' , &
1293
1298
' --list list candidate basenames instead of running them. Note they' , &
1294
1299
' --list will still be built if not currently up to date. ' , &
1300
+ ' --config-file PATH Custom location of the global config file. ' , &
1295
1301
' -- ARGS optional arguments to pass to the test program(s). ' , &
1296
1302
' The same arguments are passed to all test names ' , &
1297
1303
' specified. ' , &
@@ -1317,16 +1323,18 @@ subroutine set_help()
1317
1323
' update(1) - manage project dependencies' , &
1318
1324
' ' , &
1319
1325
' SYNOPSIS' , &
1320
- ' fpm update [--fetch-only] [--clean] [--verbose] [NAME(s)]' , &
1326
+ ' fpm update [--fetch-only] [--clean] [--verbose] [NAME(s)] ' , &
1327
+ ' [--global-config PATH] ' , &
1321
1328
' ' , &
1322
1329
' DESCRIPTION' , &
1323
1330
' Manage and update project dependencies. If no dependency names are' , &
1324
1331
' provided all the dependencies are updated automatically.' , &
1325
1332
' ' , &
1326
1333
' OPTIONS' , &
1327
- ' --fetch-only Only fetch dependencies, do not update existing projects' , &
1328
- ' --clean Do not use previous dependency cache' , &
1329
- ' --verbose Show additional printout' , &
1334
+ ' --fetch-only Only fetch dependencies, do not update existing projects' , &
1335
+ ' --clean Do not use previous dependency cache' , &
1336
+ ' --config-file PATH Custom location of the global config file' , &
1337
+ ' --verbose Show additional printout' , &
1330
1338
' ' , &
1331
1339
' SEE ALSO' , &
1332
1340
' The fpm(1) home page at https://github.com/fortran-lang/fpm' , &
@@ -1338,7 +1346,7 @@ subroutine set_help()
1338
1346
' SYNOPSIS' , &
1339
1347
' fpm install [--profile PROF] [--flag FFLAGS] [--list] [--no-rebuild]' , &
1340
1348
' [--prefix DIR] [--bindir DIR] [--libdir DIR] [--includedir DIR]' , &
1341
- ' [--verbose]' , &
1349
+ ' [--verbose] [--global-config PATH] ' , &
1342
1350
' ' , &
1343
1351
' DESCRIPTION' , &
1344
1352
' Subcommand to install fpm projects. Running install will export the' , &
@@ -1352,16 +1360,17 @@ subroutine set_help()
1352
1360
' but do not install any of them' , &
1353
1361
help_text_build_common,&
1354
1362
help_text_flag, &
1355
- ' --no-rebuild do not rebuild project before installation' , &
1356
- ' --prefix DIR path to installation directory (requires write access),' , &
1357
- ' the default prefix on Unix systems is $HOME/.local' , &
1358
- ' and %APPDATA%\local on Windows' , &
1359
- ' --bindir DIR subdirectory to place executables in (default: bin)' , &
1360
- ' --libdir DIR subdirectory to place libraries and archives in' , &
1361
- ' (default: lib)' , &
1362
- ' --includedir DIR subdirectory to place headers and module files in' , &
1363
- ' (default: include)' , &
1364
- ' --verbose print more information' , &
1363
+ ' --no-rebuild do not rebuild project before installation' , &
1364
+ ' --prefix DIR path to installation directory (requires write access),' , &
1365
+ ' the default prefix on Unix systems is $HOME/.local' , &
1366
+ ' and %APPDATA%\local on Windows' , &
1367
+ ' --bindir DIR subdirectory to place executables in (default: bin)' , &
1368
+ ' --libdir DIR subdirectory to place libraries and archives in' , &
1369
+ ' (default: lib)' , &
1370
+ ' --includedir DIR subdirectory to place headers and module files in' , &
1371
+ ' (default: include)' , &
1372
+ ' --config-file PATH custom location of the global config file' , &
1373
+ ' --verbose print more information' , &
1365
1374
' ' , &
1366
1375
help_text_environment, &
1367
1376
' ' , &
@@ -1390,16 +1399,17 @@ subroutine set_help()
1390
1399
' directories in the build/ directory are deleted, except dependencies.' , &
1391
1400
' ' , &
1392
1401
' OPTIONS' , &
1393
- ' --skip delete the build without prompting but skip dependencies.' , &
1394
- ' --all delete the build without prompting including dependencies.' , &
1402
+ ' --skip Delete the build without prompting but skip dependencies.' , &
1403
+ ' --all Delete the build without prompting including dependencies.' , &
1404
+ ' --config-file PATH Custom location of the global config file.' , &
1395
1405
' ' ]
1396
1406
help_publish= [character (len= 80 ) :: &
1397
1407
' NAME' , &
1398
1408
' publish(1) - publish package to the registry' , &
1399
1409
' ' , &
1400
1410
' SYNOPSIS' , &
1401
1411
' fpm publish [--token TOKEN] [--show-package-version] [--show-upload-data]' , &
1402
- ' [--dry-run] [--verbose] ' , &
1412
+ ' [--dry-run] [--verbose] [--global-config PATH] ' , &
1403
1413
' ' , &
1404
1414
' fpm publish --help|--version' , &
1405
1415
' ' , &
@@ -1431,6 +1441,7 @@ subroutine set_help()
1431
1441
' --dry-run perform dry run without publishing' , &
1432
1442
' --help print this help and exit' , &
1433
1443
' --version print program version information and exit' , &
1444
+ ' --config-file PATH custom location of the global config file' , &
1434
1445
' --verbose print more information' , &
1435
1446
' ' , &
1436
1447
' EXAMPLES' , &
0 commit comments