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.

Option -v not recognised by run

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: Fedora 31
  • Poetry version: 1.0.5
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

poetry run does not recognise the global option -v even though it’s listed in the documentation:

$ poetry help run
USAGE
  poetry run <args1> ... [<argsN>]
...
GLOBAL OPTIONS
  -v (--verbose)         Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug

If I try to use it, I just get the help message again for the help command itself:

$ poetry -v run pserve development.ini
USAGE
  poetry help [<command1>] ... [<commandN>]
...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pawamoycommented, Apr 30, 2020

Additionally, when using poetry run -v PROG ARGS, Poetry will fail with FileNotFoundError, since it’s trying to execute -v.

1reaction
sinoroccommented, Nov 10, 2020

I somewhat understand why supporting poetry run -v something is complicated and/or not welcome. But I must say, I never understood why the global options can not be placed before the command, so that poetry -v run something should be possible. It would make sense to place global flags before any specific command. I do not even know if that is true or not, I kind of gave up on trying to understand the CLI logic, it is frustratingly inconsistent to me (I know these things are deceptively hard to handle correctly):

$ poetry -V
Poetry version 1.1.4
$ poetry -v cache list
USAGE
[...]
$ poetry cache -v list
USAGE
[...]
$ poetry cache -vvv list
Too many arguments.
$ poetry cache list -v
pypi
Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Fix the "Not Recognized as an Internal or External ...
5 Ways to Fix the "Not Recognized as an Internal or External Command" Error in Windows · Press Win + R to open...
Read more >
Left Cmd + V isn't working anymore - Apple Community
A strange problem has occurred on my Macbook Pro 2011 running Sierra. Suddenly the left Cmd + V shortcut doesn't work anymore.
Read more >
ng is not recognized as an internal or external command
I solved this problem in accordance with the figure: run in cmd npm install -g @angular/cli. and then. ( open in Windows 10)...
Read more >
How to Fix Ctrl C / Ctrl V Not Working [Full Fix] [Clone Disk]
Step 3. In the pop-up window, tick the checkbox next to Enable Ctrl key shortcuts under the Options tab and click on OK...
Read more >
How to Fix 'Pip' is Not Recognized as an Internal or External ...
Press the Windows key + R to open Run. · Type cmd and press Enter to open the command prompt. · Enter the...
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