Skip to content

Commit 607c95f

Browse files
committed
Add to help
1 parent f3150e3 commit 607c95f

File tree

1 file changed

+53
-42
lines changed

1 file changed

+53
-42
lines changed

src/fpm_command_line.f90

Lines changed: 53 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -776,21 +776,22 @@ subroutine set_help()
776776
help_list_dash = [character(len=80) :: &
777777
' ', &
778778
' build [--compiler COMPILER_NAME] [--profile PROF] [--flag FFLAGS] [--list] ', &
779-
' [--tests] [--no-prune] ', &
779+
' [--tests] [--no-prune] [--config-file PATH] ', &
780780
' help [NAME(s)] ', &
781781
' new NAME [[--lib|--src] [--app] [--test] [--example]]| ', &
782782
' [--full|--bare][--backfill] ', &
783-
' update [NAME(s)] [--fetch-only] [--clean] [--verbose] ', &
783+
' update [NAME(s)] [--fetch-only] [--clean] [--verbose] [--config-file PATH] ', &
784784
' list [--list] ', &
785785
' run [[--target] NAME(s) [--example] [--profile PROF] [--flag FFLAGS] [--all] ', &
786786
' [--runner "CMD"] [--compiler COMPILER_NAME] [--list] [-- ARGS] ', &
787+
' [--config-file PATH] ', &
787788
' 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] ', &
789790
' 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] ', &
792793
' publish [--token TOKEN] [--show-package-version] [--show-upload-data] ', &
793-
' [--dry-run] [--verbose] ', &
794+
' [--dry-run] [--verbose] [--config-file PATH] ', &
794795
' ']
795796
help_usage=[character(len=80) :: &
796797
'' ]
@@ -900,22 +901,23 @@ subroutine set_help()
900901
' Their syntax is ', &
901902
' ', &
902903
' build [--profile PROF] [--flag FFLAGS] [--list] [--compiler COMPILER_NAME] ', &
903-
' [--tests] [--no-prune] ', &
904+
' [--tests] [--no-prune] [--config-file PATH] ', &
904905
' new NAME [[--lib|--src] [--app] [--test] [--example]]| ', &
905906
' [--full|--bare][--backfill] ', &
906-
' update [NAME(s)] [--fetch-only] [--clean] ', &
907+
' update [NAME(s)] [--fetch-only] [--clean] [--config-file PATH] ', &
907908
' run [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS] [--list] [--all] ', &
908909
' [--example] [--runner "CMD"] [--compiler COMPILER_NAME] ', &
909-
' [--no-prune] [-- ARGS] ', &
910+
' [--no-prune] [-- ARGS] [--config-file PATH] ', &
910911
' test [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS] [--list] ', &
911912
' [--runner "CMD"] [--compiler COMPILER_NAME] [--no-prune] [-- ARGS] ', &
913+
' [--config-file PATH] ', &
912914
' help [NAME(s)] ', &
913915
' list [--list] ', &
914916
' 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] ', &
917919
' publish [--token TOKEN] [--show-package-version] [--show-upload-data] ', &
918-
' [--dry-run] [--verbose] ', &
920+
' [--dry-run] [--verbose] [--config-file PATH] ', &
919921
' ', &
920922
'SUBCOMMAND OPTIONS ', &
921923
' -C, --directory PATH', &
@@ -1017,9 +1019,9 @@ subroutine set_help()
10171019
' run(1) - the fpm(1) subcommand to run project applications ', &
10181020
' ', &
10191021
'SYNOPSIS ', &
1020-
' fpm run [[--target] NAME(s) [--profile PROF] [--flag FFLAGS]', &
1022+
' fpm run [[--target] NAME(s)] [--profile PROF] [--flag FFLAGS]', &
10211023
' [--compiler COMPILER_NAME] [--runner "CMD"] [--example]', &
1022-
' [--list] [--all] [-- ARGS]', &
1024+
' [--list] [--all] [--config-file PATH] [-- ARGS]', &
10231025
' ', &
10241026
' fpm run --help|--version ', &
10251027
' ', &
@@ -1041,8 +1043,9 @@ subroutine set_help()
10411043
' any single character and "*" represents any string. ', &
10421044
' Note The glob string normally needs quoted to ', &
10431045
' 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 ''*''. ', &
10451047
' --example Run example programs instead of applications. ', &
1048+
' --config-file PATH Custom location of the global config file. ', &
10461049
help_text_build_common, &
10471050
help_text_compiler, &
10481051
help_text_flag, &
@@ -1088,7 +1091,7 @@ subroutine set_help()
10881091
' ', &
10891092
'SYNOPSIS ', &
10901093
' fpm build [--profile PROF] [--flag FFLAGS] [--compiler COMPILER_NAME] ', &
1091-
' [--list] [--tests] ', &
1094+
' [--list] [--tests] [--config-file PATH] ', &
10921095
' ', &
10931096
' fpm build --help|--version ', &
10941097
' ', &
@@ -1113,12 +1116,13 @@ subroutine set_help()
11131116
help_text_build_common,&
11141117
help_text_compiler, &
11151118
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+
' ', &
11221126
help_text_environment, &
11231127
' ', &
11241128
'EXAMPLES ', &
@@ -1268,8 +1272,9 @@ subroutine set_help()
12681272
' test(1) - the fpm(1) subcommand to run project tests ', &
12691273
' ', &
12701274
'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] ', &
12731278
' ', &
12741279
' fpm test --help|--version ', &
12751280
' ', &
@@ -1292,6 +1297,7 @@ subroutine set_help()
12921297
' see "fpm help runner" for further details. ', &
12931298
' --list list candidate basenames instead of running them. Note they', &
12941299
' --list will still be built if not currently up to date. ', &
1300+
' --config-file PATH Custom location of the global config file. ', &
12951301
' -- ARGS optional arguments to pass to the test program(s). ', &
12961302
' The same arguments are passed to all test names ', &
12971303
' specified. ', &
@@ -1317,16 +1323,18 @@ subroutine set_help()
13171323
' update(1) - manage project dependencies', &
13181324
'', &
13191325
'SYNOPSIS', &
1320-
' fpm update [--fetch-only] [--clean] [--verbose] [NAME(s)]', &
1326+
' fpm update [--fetch-only] [--clean] [--verbose] [NAME(s)] ', &
1327+
' [--global-config PATH] ', &
13211328
'', &
13221329
'DESCRIPTION', &
13231330
' Manage and update project dependencies. If no dependency names are', &
13241331
' provided all the dependencies are updated automatically.', &
13251332
'', &
13261333
'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', &
13301338
'', &
13311339
'SEE ALSO', &
13321340
' The fpm(1) home page at https://github.com/fortran-lang/fpm', &
@@ -1338,7 +1346,7 @@ subroutine set_help()
13381346
'SYNOPSIS', &
13391347
' fpm install [--profile PROF] [--flag FFLAGS] [--list] [--no-rebuild]', &
13401348
' [--prefix DIR] [--bindir DIR] [--libdir DIR] [--includedir DIR]', &
1341-
' [--verbose]', &
1349+
' [--verbose] [--global-config PATH]', &
13421350
'', &
13431351
'DESCRIPTION', &
13441352
' Subcommand to install fpm projects. Running install will export the', &
@@ -1352,16 +1360,17 @@ subroutine set_help()
13521360
' but do not install any of them', &
13531361
help_text_build_common,&
13541362
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', &
13651374
'', &
13661375
help_text_environment, &
13671376
'', &
@@ -1390,16 +1399,17 @@ subroutine set_help()
13901399
' directories in the build/ directory are deleted, except dependencies.', &
13911400
'', &
13921401
'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.', &
13951405
'' ]
13961406
help_publish=[character(len=80) :: &
13971407
'NAME', &
13981408
' publish(1) - publish package to the registry', &
13991409
'', &
14001410
'SYNOPSIS', &
14011411
' fpm publish [--token TOKEN] [--show-package-version] [--show-upload-data]', &
1402-
' [--dry-run] [--verbose] ', &
1412+
' [--dry-run] [--verbose] [--global-config PATH]', &
14031413
'', &
14041414
' fpm publish --help|--version', &
14051415
'', &
@@ -1431,6 +1441,7 @@ subroutine set_help()
14311441
' --dry-run perform dry run without publishing', &
14321442
' --help print this help and exit', &
14331443
' --version print program version information and exit', &
1444+
' --config-file PATH custom location of the global config file', &
14341445
' --verbose print more information', &
14351446
'', &
14361447
'EXAMPLES', &

0 commit comments

Comments
 (0)