Skip to content

How to stop poetry from CLI intercepting options for a command registered by a plugin? #10212

Answered by abn
nat-n asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @nat-n !

The run command is a snow-flake unfortunately. See

def _configure_run_command(self, io: IO) -> None:
for handling logic.

Also, it is inadvisable to reuse global options. They will always be processed first. See

def _sort_global_options(self, io: IO) -> None:
.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@abn
Comment options

abn Feb 22, 2025
Maintainer

@nat-n
Comment options

Answer selected by nat-n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants