Skip to content

Warnings when using rpm content upload #1315

@thmo

Description

@thmo

These warnings are produced:

$ pulp rpm content upload --help
/home/thomas/.local/share/virtualenvs/pulp-cli/lib/python3.13/site-packages/click/core.py:1084: UserWarning: The parameter --file is used more than once. Remove its duplicate as parameters should be unique.
  for param in self.get_params(ctx):
/home/thomas/.local/share/virtualenvs/pulp-cli/lib/python3.13/site-packages/click/core.py:1226: UserWarning: The parameter --file is used more than once. Remove its duplicate as parameters should be unique.
  for param in iter_params_for_processing(param_order, self.get_params(ctx)):
/home/thomas/.local/share/virtualenvs/pulp-cli/lib/python3.13/site-packages/click/core.py:1041: UserWarning: The parameter --file is used more than once. Remove its duplicate as parameters should be unique.
  for param in self.get_params(ctx):
/home/thomas/.local/share/virtualenvs/pulp-cli/lib/python3.13/site-packages/click/core.py:1164: UserWarning: The parameter --file is used more than once. Remove its duplicate as parameters should be unique.
  for param in self.get_params(ctx):
Usage: pulp rpm content upload [OPTIONS]
[...]

$ pip list | grep -E 'click|pulp'
click              8.3.1
click-shell        2.1
pulp-cli           0.37.0
pulp-glue          0.37.0

As a side note, it would be actually nice if one could give --file multiple times, and get a similar effect as with --directory, i.e., be able to upload multiple RPMs in one go - worth another ticket?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions