`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:
- Created 4 years ago
- Reactions:23
- Comments:18 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Commit 85dc9a1 should fix most of the issues with the
run
command.I will try to make a new beta release this week.
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/2Edit: 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