@@ -121,26 +121,25 @@ module fpm_command_line
121
121
122
122
! '12345678901234567890123456789012345678901234567890123456789012345678901234567890',&
123
123
character (len= 80 ), parameter :: help_text_compiler(* ) = [character (len= 80 ) :: &
124
- ' --compiler NAME Specify a compiler name. The default is "gfortran"' ,&
125
- ' unless set by the environment variable FPM_FC.' ,&
126
- ' --c-compiler NAME Specify the C compiler name. Automatically determined by ' ,&
127
- ' default unless set by the environment variable FPM_CC.' ,&
128
- ' --archiver NAME Specify the archiver name. Automatically determined by ' ,&
129
- ' default unless set by the environment variable FPM_AR.' &
124
+ ' --compiler NAME Specify a compiler name. The default is "gfortran" ' ,&
125
+ ' unless set by the environment variable FPM_FC. ' ,&
126
+ ' --c-compiler NAME Specify the C compiler name. Automatically determined by ' ,&
127
+ ' default unless set by the environment variable FPM_CC. ' ,&
128
+ ' --archiver NAME Specify the archiver name. Automatically determined by ' ,&
129
+ ' default unless set by the environment variable FPM_AR. ' &
130
130
]
131
131
132
+ ! '12345678901234567890123456789012345678901234567890123456789012345678901234567890',&
132
133
character (len= 80 ), parameter :: help_text_flag(* ) = [character (len= 80 ) :: &
133
- ' --flag FFLAGS selects compile arguments for the build, the default' ,&
134
- ' value is set by the FPM_FFLAGS environment variable.' , &
135
- ' These are added to the profile options if --profile' , &
136
- ' is specified, else these options override the defaults.' ,&
137
- ' Note object and .mod directory locations are always' ,&
138
- ' built in.' ,&
134
+ ' --flag FFLAGS selects compile arguments for the build, the default value is' ,&
135
+ ' set by the FPM_FFLAGS environment variable. These are added ' ,&
136
+ ' to the profile options if --profile is specified, else these ' ,&
137
+ ' these options override the defaults. Note object and .mod ' ,&
138
+ ' directory locations are always built in. ' ,&
139
139
' --c-flag CFLAGS selects compile arguments specific for C source in the build.' ,&
140
- ' The default value is set by the FPM_CFLAGS environment' ,&
141
- ' variable.' ,&
142
- ' --link-flag LDFLAGS' ,&
143
- ' select arguments passed to the linker for the build. The' ,&
140
+ ' The default value is set by the FPM_CFLAGS environment ' ,&
141
+ ' variable. ' ,&
142
+ ' --link-flag LDFLAGS select arguments passed to the linker for the build. The ' ,&
144
143
' default value is set by the FPM_LDFLAGS environment variable.' &
145
144
]
146
145
@@ -705,15 +704,15 @@ subroutine set_help()
705
704
' SUBCOMMANDS ' , &
706
705
' Valid fpm(1) subcommands are: ' , &
707
706
' ' , &
708
- ' + build Compile the packages into the "build/" directory. ' , &
709
- ' + new Create a new Fortran package directory with sample files. ' , &
710
- ' + update Update the project dependencies. ' , &
711
- ' + run Run the local package binaries. defaults to all binaries for ' , &
712
- ' that release. ' , &
713
- ' + test Run the tests. ' , &
714
- ' + help Alternate to the --help switch for displaying help text. ' , &
715
- ' + list Display brief descriptions of all subcommands. ' , &
716
- ' + install Install project ' , &
707
+ ' + build Compile the packages into the "build/" directory. ' , &
708
+ ' + new Create a new Fortran package directory with sample files. ' , &
709
+ ' + update Update the project dependencies. ' , &
710
+ ' + run Run the local package binaries. defaults to all binaries ' , &
711
+ ' for that release. ' , &
712
+ ' + test Run the tests. ' , &
713
+ ' + help Alternate to the --help switch for displaying help text. ' , &
714
+ ' + list Display brief descriptions of all subcommands. ' , &
715
+ ' + install Install project ' , &
717
716
' ' , &
718
717
' Their syntax is ' , &
719
718
' ' , &
@@ -758,7 +757,7 @@ subroutine set_help()
758
757
' directory. ' , &
759
758
' ' , &
760
759
' If "file" does not exist or cannot be read, then an error occurs and' , &
761
- ' the program stops. Each line of the file is prefixed with "options"' , &
760
+ ' the program stops. Each line of the file is prefixed with "options" ' , &
762
761
' and interpreted as a separate argument. The file itself may not ' , &
763
762
' contain @file arguments. That is, it is not processed recursively. ' , &
764
763
' ' , &
@@ -865,7 +864,7 @@ subroutine set_help()
865
864
help_text_flag, &
866
865
' --runner CMD A command to prefix the program execution paths with. ' , &
867
866
' see "fpm help runner" for further details. ' , &
868
- ' --list list pathname of candidates instead of running them. Note ' , &
867
+ ' --list list basenames of candidates instead of running them. Note ' , &
869
868
' out-of-date candidates will still be rebuilt before being ' , &
870
869
' listed. ' , &
871
870
' -- ARGS optional arguments to pass to the program(s). The same ' , &
@@ -877,7 +876,9 @@ subroutine set_help()
877
876
' fpm(1) - run or display project applications: ' , &
878
877
' ' , &
879
878
' fpm run # run a target when only one exists or list targets ' , &
880
- ' fpm run --list # list all targets, running nothing. ' , &
879
+ ' fpm run --list # list basename of all targets, running nothing. ' , &
880
+ ' fpm run "demo*" --list # list target basenames starting with "demo*".' , &
881
+ ' fpm run "psi*" --runner # list target pathnames starting with "psi*".' , &
881
882
' fpm run --all # run all targets, no matter how many there are. ' , &
882
883
' ' , &
883
884
' # run default program built or to be built with the compiler command ' , &
@@ -886,7 +887,7 @@ subroutine set_help()
886
887
' fpm run --compiler f90 ' , &
887
888
' ' , &
888
889
' # run example programs instead of the application programs. ' , &
889
- ' fpm run --example '' * '' ' , &
890
+ ' fpm run --example "*" ' , &
890
891
' ' , &
891
892
' # run a specific program and pass arguments to the command ' , &
892
893
' fpm run myprog -- -x 10 -y 20 --title "my title line" ' , &
@@ -932,11 +933,11 @@ subroutine set_help()
932
933
' default. ' ,&
933
934
help_text_compiler, &
934
935
help_text_flag, &
935
- ' --list list candidates instead of building or running them ' , &
936
- ' --tests build all tests (otherwise only if needed) ' , &
937
- ' --show-model show the model and exit (do not build) ' , &
938
- ' --help print this help and exit ' , &
939
- ' --version print program version information and exit ' , &
936
+ ' --list list candidates instead of building or running them ' , &
937
+ ' --tests build all tests (otherwise only if needed) ' , &
938
+ ' --show-model show the model and exit (do not build) ' , &
939
+ ' --help print this help and exit ' , &
940
+ ' --version print program version information and exit ' , &
940
941
' ' , &
941
942
help_text_environment, &
942
943
' ' , &
@@ -1111,7 +1112,8 @@ subroutine set_help()
1111
1112
help_text_flag, &
1112
1113
' --runner CMD A command to prefix the program execution paths with. ' , &
1113
1114
' see "fpm help runner" for further details. ' , &
1114
- ' --list list candidates instead of building or running them ' , &
1115
+ ' --list list candidate basenames instead of running them. Note they' , &
1116
+ ' --list will still be built if not currently up to date. ' , &
1115
1117
' -- ARGS optional arguments to pass to the test program(s). ' , &
1116
1118
' The same arguments are passed to all test names ' , &
1117
1119
' specified. ' , &
0 commit comments