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

Add support for man pages to CLI tools #3468

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dgovil
Copy link
Contributor

@dgovil dgovil commented Dec 17, 2024

Description of Change(s)

This PR adds support for adding man pages to the command line utilities.
I could automatically look for a matching man page rather than requiring it be mandated, but I wanted to leave the option for having the manpage be in a different location if needed.

As a sample, I've translated just usdcat over from https://openusd.org/release/toolset.html to a manpage. If this PR is accepted, I think the community or I could fill out the rest fairly quickly. I just didn't want to overload this one PR with everything at once.

It is possible to use pandoc to generate both the manpage and the sphinx doc, but I wanted to keep this PR small.

While Windows does not technically use manpages, there are various systems on windows that allow accessing them, so I haven't gated these behind a platform check.

To preview the rendering, you can simply man usdcat.1 . The 1 suffix is used for command line tools.

Checklist

[X] I have created this PR based on the dev branch

[X] I have followed the coding conventions

[ ] I have added unit tests that exercise this functionality (Reference:
testing guidelines)

[X] I have verified that all unit tests pass with the proposed changes

[X] I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)

This PR adds support for adding man pages to the command line utilities.

As a sample, I've translated just usdcat over from https://openusd.org/release/toolset.html  to a manpage.

It is possible to use pandoc to generate both the manpage and the sphinx doc, but I wanted to keep this PR small.

While Windows does not technically use manpages, there are various systems on windows that allow accessing them, so I haven't gated these behind a platform check.
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10516

(This is an automated message. See here for more information.)

@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants