aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_command_line.f90
diff options
context:
space:
mode:
authorJohn S. Urban <urbanjost@comcast.net>2021-11-12 16:45:06 -0500
committerJohn S. Urban <urbanjost@comcast.net>2021-11-12 16:45:06 -0500
commit76f87ebbf1e763426d6eae2e57dc27fb78767d03 (patch)
treeecc09612f51359cc7e3cd922a75660a6e6b13008 /src/fpm_command_line.f90
parent9fc759a1821df5a11bde1e48f0f09aca39130f1f (diff)
downloadfpm-76f87ebbf1e763426d6eae2e57dc27fb78767d03.tar.gz
fpm-76f87ebbf1e763426d6eae2e57dc27fb78767d03.zip
correct basename(3f) function and subsequently fix --list option
The --list option was incorrectly trimming pathnames when suffix=.false. was present, and the meaning of the --list option has changed from originally being an option to display the full pathnames of targets to displaying a table of matching target basenames. Since the --runner command can be used to display the full pathnames and the runner command defaults to an "echo" command the pathnames can still easily be generated, but an example was added to reflect that. As the help text needed editing anyway, changed some whitespace to conform to the requirements of the txt2man(1) utility, to facilitate easily generating man-pages and HTML versions of the help text.
Diffstat (limited to 'src/fpm_command_line.f90')
-rw-r--r--src/fpm_command_line.f9011
1 files changed, 7 insertions, 4 deletions
diff --git a/src/fpm_command_line.f90 b/src/fpm_command_line.f90
index ed99e58..db5d7c7 100644
--- a/src/fpm_command_line.f90
+++ b/src/fpm_command_line.f90
@@ -864,7 +864,7 @@ contains
help_text_flag, &
' --runner CMD A command to prefix the program execution paths with. ', &
' see "fpm help runner" for further details. ', &
- ' --list list pathname of candidates instead of running them. Note ', &
+ ' --list list basenames of candidates instead of running them. Note ', &
' out-of-date candidates will still be rebuilt before being ', &
' listed. ', &
' -- ARGS optional arguments to pass to the program(s). The same ', &
@@ -876,7 +876,9 @@ contains
' fpm(1) - run or display project applications: ', &
' ', &
' fpm run # run a target when only one exists or list targets ', &
- ' fpm run --list # list all targets, running nothing. ', &
+ ' fpm run --list # list basename of all targets, running nothing. ', &
+ ' fpm run "demo*" --list # list target basenames starting with "demo*".', &
+ ' fpm run "psi*" --runner # list target pathnames starting with "psi*".', &
' fpm run --all # run all targets, no matter how many there are. ', &
' ', &
' # run default program built or to be built with the compiler command ', &
@@ -885,7 +887,7 @@ contains
' fpm run --compiler f90 ', &
' ', &
' # run example programs instead of the application programs. ', &
- ' fpm run --example ''*'' ', &
+ ' fpm run --example "*" ', &
' ', &
' # run a specific program and pass arguments to the command ', &
' fpm run myprog -- -x 10 -y 20 --title "my title line" ', &
@@ -1110,7 +1112,8 @@ contains
help_text_flag, &
' --runner CMD A command to prefix the program execution paths with. ', &
' see "fpm help runner" for further details. ', &
- ' --list list candidates instead of building or running them ', &
+ ' --list list candidate basenames instead of running them. Note they', &
+ ' --list will still be built if not currently up to date. ', &
' -- ARGS optional arguments to pass to the test program(s). ', &
' The same arguments are passed to all test names ', &
' specified. ', &