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` swallows `--help` from the underlying sub-command

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

Issue

Poetry is swallowing the --help long-option and not passing it to the underlying command. In this specific example, I was trying to get the help-text from black.

(.venv) kstone@kstone-mbp ~> poetry run black --help
USAGE
  poetry run <args1> ... [<argsN>]

ARGUMENTS
  <args>                 The command and arguments/options to run.

GLOBAL OPTIONS
  -h (--help)            Display this help message
  -q (--quiet)           Do not output any message
  -v (--verbose)         Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and
                         "-vvv" for debug
  -V (--version)         Display this application version
  --ansi                 Force ANSI output
  --no-ansi              Disable ANSI output
  -n (--no-interaction)  Do not ask any interactive question

(.venv) kstone@kstone-mbp ~> poetry run black --version
black, version 19.3b0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kevinastonecommented, Jul 10, 2019
0reactions
kevinastonecommented, Nov 4, 2019

This should be fixed via c4b2c38575ff93e61044c2e67bf01a4fd03d38d0 since the double-dash was added in clikit v0.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
... anaconda-user-help-blivet-gui.tar.gz anaconda-user-help.spec anaconda-user-help-9.0.0.tar.gz ... cscope-7-fscanner-swallow-function-as-parameters.patch ...
Read more >
irrevocably - OSCHINA - 中文开源技术交流社区
Will there be any way to retrieve my subscription data from Google in the future? No -- all subscription data will be permanently,...
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