-
Notifications
You must be signed in to change notification settings - Fork 42
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
Improve help text for options accepting generic resources #387
Comments
I was even considering to blindlessly append "either in the form <...> or by href" to the help text. |
Be aware, that plugin and resource_type don't necessarily have a default. |
Yes, hence the |
@thmo just wanted to chime in and say thank you for reporting these issues. They're very helpful in setting our priorities. |
Right. But i would skip the whole sentence if there is no default. Even more challenging: If there is no default we should not put the things in |
What makes things a bit more complicated, is that the precise syntax is actually
isn't it? Not sure if we really want to go that route... |
Sure! Like the project and also the way it is organized (as far as I can tell from the outside, of course). |
as long as they are optional, yes. If they aren't its really only Are you up for casting this into a PR? |
@thmo Wanted to ping you if you would be able to provide a PR. |
Sorry totally forgot about this. Will do. |
Summary
The
pulp rpm distribution create
command has a--repository
option. This options takes a generic resource as argument, i.e.,[[<plugin>:]<resource_type>:]<name>'
(albeit it would default to, and only acceptrpm:rpm:
). [NB: it does not accept a href either, not sure whether that could be added easily.]Other commands however, e.g.,
pulp rpm repository content add
only take the bare name of a repository as argument for--repository
.This seems to be a bit inconsistent and/or confusing.
If we do want to keep it the way it is, we should at least improve help texts.
Would a patch similar to this be acceptable?
Still need to refine the help text in case the command in question accepts a href.
pulp-cli version info
pulp-cli 0.11.0-31-g591d6a6
The text was updated successfully, but these errors were encountered: