Skip to content

poetry show gives clickit "NoSuchOptionException(name)" error #5240

@swills1

Description

@swills1
  • [x ] I am on the latest Poetry version.

  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.

  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Fedora 35

  • Poetry version: 3.10.1

  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

Hello.

I am getting this clickit error;

NoSuchOptionException

  The "--show" option does not exist.

  at ~/.local/lib/python3.10/site-packages/clikit/args/default_args_parser.py:300 in _add_long_option
      296│     def _add_long_option(
      297│         self, name, value, tokens, fmt, lenient
      298│     ):  # type: (str, Optional[str], List[str], ArgsFormat, bool) -> None
      299│         if not fmt.has_option(name):
    → 300│             raise NoSuchOptionException(name)
      301│ 
      302│         option = fmt.get_option(name);
      303│ 
      304│         if value is False:

These are the steps to reproduce

poetry new packagename
cd packagename
poetry shell
poetry --show

This isn't preventing work, I just wanted to report it. I did search issues, but I may have missed one talking about this.

EDIT

I was turned around on what I was doing - true issue is - #5240 (comment)

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions