Skip to content

Conversation

urbanjost
Copy link
Contributor

@urbanjost urbanjost commented Nov 12, 2021

Fixes #606.

--list now has non-intuitive differences between build --list and [run,test] --list and install --list, as it originally showed the full pathname of targets on all commands. Not sure if it should be renamed on [run,test] to --show; or if their should be a --path option specifically for the long names; but on [run,test] you can still get full pathnames via --runner so no functionality is lost; but
I do think it is less intuitive what --list does not, as it varies somewhat become subcommands.https://urbanjost.github.io/fpm-tools/manual.html

Did not add a new test for checking the --list option, but the need for this patch would probably be avoidable if we had one. Will try to add one in a separate PR, as a good number of features are not tested and we probably could use a separate project to get the tests up to par (especially since part of the design of fpm is specifically to encourage the development of tests :>).

To review the revised help text as HTML see this regenerated version of 'fpm version 0.4.0 manual'

A few lines in the help text no longer conformed to the rules used
by txt2man(1), causing errors in generating man-pages and an HTML
version of the documentation available via the "help" subcommand.
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.
Copy link
Member

@LKedward LKedward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @urbanjost! LGTM.


I also wonder whether we could incorporate your man page to html workflow within our Github actions here and deploy under fortran-lang.org?

@LKedward LKedward merged commit d08e91f into fortran-lang:main Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

listing of targets and --list option is broken
3 participants