Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module.1 man page is not in the man format #686

Closed
lahwaacz opened this issue Feb 4, 2024 · 6 comments
Closed

module.1 man page is not in the man format #686

lahwaacz opened this issue Feb 4, 2024 · 6 comments

Comments

@lahwaacz
Copy link

lahwaacz commented Feb 4, 2024

The Makefile installs a module.1 man page which is not in the man format, but a plain-text file:

$(PATH_TO_LUA) $(srcdir)/src/lmod.in.lua bash --help 2> $(DESTDIR)$(MAN_PAGES)/module.1

This results in suboptimal formatting when viewed with the man utility from man-db:

Usage: module [options] sub‐command [args ...]

Options:
  ‐h ‐? ‐H ‐‐help                   This help message
  ‐s  availStyle ‐‐style=availStyle  Site controlled avail style:
system
                                    (default: system)
  ‐‐regression_testing              Lmod regression testing
  ‐b ‐‐brief                        brief listing with only  user
specified
                                    modules
  ‐D                                 Program  tracing  written to
stderr
  ‐‐debug=dbglvl                    Program  tracing  written  to
stderr (where
                                    dbglvl is a number 1,2,3)
  ‐‐pin_versions=pinVersions         When  doing  a  restore  use
specified
                                    version, do  not  follow  de‐
faults
  ‐d  ‐‐default                       List  default  modules only
when used with
                                    avail
...

mandoc can't even parse it and displays unreadable "binary data".

Please write a proper man page in a supported format.

rtmclay pushed a commit that referenced this issue Jun 18, 2024
…t. Use pod2man when available to generate a man page for module
@rtmclay
Copy link
Member

rtmclay commented Jun 18, 2024

The branch PR686 now support a man.1 output. Please test it out to see if works for you.

@lahwaacz
Copy link
Author

There is no pull request 686, the #686 refers to this issue...

@rtmclay
Copy link
Member

rtmclay commented Jun 19, 2024

I know that issue #686 is not a pull request. As I said, a branch named PR686 has code to generate a manpage for module.1. If you et a chance, please test this branch.

rtmclay pushed a commit that referenced this issue Jun 19, 2024
@rtmclay
Copy link
Member

rtmclay commented Jun 24, 2024

O.K. to close this issue?

rtmclay pushed a commit that referenced this issue Jun 24, 2024
rtmclay pushed a commit that referenced this issue Jul 8, 2024
rtmclay pushed a commit that referenced this issue Jul 8, 2024
rtmclay pushed a commit that referenced this issue Jul 8, 2024
@rtmclay
Copy link
Member

rtmclay commented Jul 11, 2024

This is now part of Lmod 8.7.44. I'm closing this issue. Feel free to reopen if there are issues.

@rtmclay rtmclay closed this as completed Jul 11, 2024
@lahwaacz
Copy link
Author

@rtmclay Thanks, it looks fine in 8.7.44.

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

No branches or pull requests

2 participants