-
Notifications
You must be signed in to change notification settings - Fork 110
-
Notifications
You must be signed in to change notification settings - Fork 110
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
datalad.api docstring should be populated with the description of available "commands" #2718
Comments
I'm not sure what you mean by a "generic" description, so I'll assume you're referring to the one-line command summaries shown by
In my view, trying to dynamically modify
|
yes!
may be for us, but not for the user. Adding a non conventional function to api would add the complexity for user... I typically appreciate just being able to
yes, please |
Yes, I'm considering the effect on the user in my opinion of whether the complexity is worth it. Again, I don't think it is. |
Never mind, I was stupidly thinking of the read-only docstrings of classes. Modifying a module-level |
Make it easier for users to discover what methods are available by looking at the help for the api module. One concern with this change could be that we're bringing in more modules than before, but inspecting sys.modules suggests that this is not the case. There is still some code duplication between api._command_summary and main.setup_parser that could pulled out, but that can be done later if someone thinks it's worth the effort. Closes datalad#2718.
Make it easier for users to discover what methods are available by looking at the help for the api module. One concern with this change could be that we're bringing in more modules than before, but inspecting sys.modules suggests that this is not the case. There is still some code duplication between api._command_summary and main.setup_parser that could pulled out, but that can be done later if someone thinks it's worth the effort. Closes datalad#2718.
What is the problem?
datalad --help
provides a nice list of commands to use, but neitherdatalad
nordatalad.api
docstring give any hints on what is available and how should be used. I think they shoulddatalad --help
The text was updated successfully, but these errors were encountered: