Skip to content

UserWarning coming from click library #20

@bcantoni

Description

@bcantoni

ttok is showing a UserWarning coming from the click library reporting that --tokens is used more than once:

$ ttok --version
/Users/brian/.pyenv/versions/3.13.3/envs/llm-dev-3.13/lib/python3.13/site-packages/click/core.py:1193: UserWarning: The parameter --tokens is used more than once. Remove its duplicate as parameters should be unique.
  parser = self.make_parser(ctx)
/Users/brian/.pyenv/versions/3.13.3/envs/llm-dev-3.13/lib/python3.13/site-packages/click/core.py:1186: UserWarning: The parameter --tokens is used more than once. Remove its duplicate as parameters should be unique.
  self.parse_args(ctx, args)
ttok, version 0.3

I can see where this started with click 8.2.0 which included adding this warning: pallets/click#2396

The ttok utility still works fine. Downgrading to click 8.1.8 stops that warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions