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

Better CLI documentation #1695

Open
brycegbrazen opened this issue Mar 22, 2024 · 1 comment
Open

Better CLI documentation #1695

brycegbrazen opened this issue Mar 22, 2024 · 1 comment
Labels
difficulty/medium This task is not easy but not hard documentation enhancement help wanted Help us improve rez

Comments

@brycegbrazen
Copy link
Contributor

It'd be great if we could improve the CLI documentation to be more clear on what the options are, what valid values are for each option are, and several examples using different combinations of the options.

We should make sure to cover the complex cases like the -c option for rez-env where they can be specified with a keyword -c or just as the final positional argument to rez-env.

Motivation
Users having a easier time using the CLI, and less spam in Slack.

@JeanChristopheMorinPerso
Copy link
Member

Thanks @brycegbrazen! I think we could potentially look at the pip docs (https://pip.pypa.io/en/stable/cli/pip_install/) to take some inspirations. I like documentation.

Some of it will probably require us to review/re-think how we store/generate the documentation for the commands. In pip's case, the "usage" and "options" sections are automatically generated from the code (like we do), but the "description" section (and its subsections and the "examples" section are right in the sphinx docs.

Do you think something like pip would work for us? Do you have command lines docs that you like and you think we could use as references?

@JeanChristopheMorinPerso JeanChristopheMorinPerso added documentation help wanted Help us improve rez difficulty/medium This task is not easy but not hard labels Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium This task is not easy but not hard documentation enhancement help wanted Help us improve rez
Projects
None yet
Development

No branches or pull requests

2 participants