question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`poetry run` regression for handling command flags

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Darwin 10.14.6
  • Poetry version: 1.0.0.b3
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

In poetry==1.0.0.b3, it seems that poetry run interprets any CLI options as its own rather than passing them through.

For example:

poetry run python manage.py makemigrations --check

> [NoSuchOptionException]
> The "--check" option does not exist.

In poetry==1.0.0.b1, this was not an issue.

This can be re-created by basic commands like so:

poetry run ls -l

[NoSuchOptionException]
The "-l" option does not exist.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:23
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

12reactions
sdispatercommented, Oct 29, 2019

Commit 85dc9a1 should fix most of the issues with the run command.

I will try to make a new beta release this week.

12reactions
c0statecommented, Nov 13, 2019

If you upgrade to 1.0.0b3, you need to use -- to stop options parsing now it looks like.

See this change in the clikit dependency which poetry uses: https://github.com/sdispater/clikit/pull/2

Edit: you shouldn’t need this anymore with the latest 1.0.0b4 release it looks like. That release is more in line with https://github.com/sdispater/poetry/issues/1500#issuecomment-547608347

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry run regression for handling command flags #1500
In poetry==1.0.0.b3 , it seems that poetry run interprets any CLI options as its own rather than passing them through. For example:.
Read more >
Commands | Documentation | Poetry - Python dependency ...
To only install the project itself with no dependencies, use the --only-root flag. poetry install --only-root. See Dependency groups for more information about ......
Read more >
Configure a Poetry environment that runs in PyCharm
Poetry is a wonderful open-source tool that can ease the pain of setting up your environment and configuring its dependencies. In this blog,...
Read more >
How to use Poetry to manage dependencies in Python
Install all project dependencies with Poetry¶. To setup a newly cloned project with poetry initialized, use the following command. poetry ...
Read more >
Handling NAs in a regression ?? Data Flags? - Cross Validated
The "flagging method"—often called the "dummy variable method" or "indicator variable method"—is used mostly to encode predictors with not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found