Skip to content

Odd click warning: "UserWarning: The parameter -c is used more than once." #5265

Description

@armijnhemel

Description

A weird UserWarning from click, saying that I supplied parameters multiple times, even though that isn't the case:

$ ./scancode -c --json-pp=/tmp/bla.json /tmp/scan/busybox-1.34.1/make_single_applets.sh 
/home/armijn/git/scancode-toolkit/venv/lib/python3.12/site-packages/click/core.py:1223: UserWarning: The parameter -c is used more than once. Remove its duplicate as parameters should be unique.
  parser = self.make_parser(ctx)
/home/armijn/git/scancode-toolkit/venv/lib/python3.12/site-packages/click/core.py:1216: UserWarning: The parameter -c is used more than once. Remove its duplicate as parameters should be unique.
  self.parse_args(ctx, args)

How To Reproduce

Latest Git checkout of ScanCode Toolkit, then just scan something.

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? (Windows/MacOS/Linux)
  • What version of scancode-toolkit was used to generate the scan file?
  • What installation method was used to install/run scancode? (pip/source download/other)

Git checkout 3c532f0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions