Skip to content

Hitting tab for completion triggers click warning #1337

@pedro-psb

Description

@pedro-psb

Summary

When doing pulp rpm content list <tab>, click issues a verbose user warning.

Steps to reproduce

$ pulp rpm content list <hit tab>
/home/username/.local/share/uv/tools/pulp-cli/lib64/python3.14/site-packages/click/core.py:1084: UserWarning: The parameter --field is used more than once. Remove its duplicate as parameters should be unique.
  for param in self.get_params(ctx):
# this same warning repeats ~5 times for a single tab hit

Expected behavior

The completion works normally.

Stacktrace/Error log

/home/username/.local/share/uv/tools/pulp-cli/lib64/python3.14/site-packages/click/core.py:1084: UserWarning: The parameter --field is used more than once. Remove its duplicate as parameters should be unique.
  for param in self.get_params(ctx):
...

Pulp and pulp-cli version info

$ pulp --version
Pulp3 Command Line Interface, Version 0.38.2
Plugin Versions:
  common: 0.38.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage-NeededNeeds to be reviewed at next pulp-cli mtgbugSomething isn't working (template-set)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions