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

CLI options are not documented #3327

Open
1 task done
sebbASF opened this issue Jun 9, 2024 · 4 comments
Open
1 task done

CLI options are not documented #3327

sebbASF opened this issue Jun 9, 2024 · 4 comments
Labels

Comments

@sebbASF
Copy link

sebbASF commented Jun 9, 2024

  • I have searched the issues (including closed ones) and believe that this is not a duplicate.

Issue

I could not find any documentation of the CLI options such as --fatal etc.

Once Pelican is installed, of course one can use the help option, but that does not provide sufficient information for some of the options, and is not really a substitute for documentation.

@sebbASF sebbASF added the docs label Jun 9, 2024
@justinmayer
Copy link
Member

justinmayer commented Jun 9, 2024 via email

@sebbASF
Copy link
Author

sebbASF commented Jun 9, 2024

The current output from help would need augmenting, as it does not give full details of all the options. For example it would be useful to document how to override PLUGIN_PATHS which is a list (array). There are various other options which could do with more explanation.

Doing so in the option list would make the help rather unwieldy. The format is also not that easy to read; it's best kept as a reminder rather than full documentation.

A possible work-round is to document the settings in the code itself, e.g. as documentation for the parse_arguments function.
The main documentation could then just link to the documentation block.

@justinmayer
Copy link
Member

I think your proposed workaround could indeed be a good place to start. 👍

@kdeldycke
Copy link
Contributor

Or you could depends on sphinx-click and have the CLI documentation autogenerated by the way of the .. click:: rST directives.

See for instance the results of my CLI in its Sphinx documentation: https://kdeldycke.github.io/meta-package-manager/cli-parameters.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants