diff --git a/docs/docs/cli.md b/docs/docs/cli.md index 89d19a8cc18..58f493a0d0e 100644 --- a/docs/docs/cli.md +++ b/docs/docs/cli.md @@ -245,6 +245,7 @@ poetry add "git+https://github.com/pallets/flask.git@1.1.1[dotenv,dev]" * `--path`: The path to a dependency. * `--optional` : Add as an optional dependency. * `--dry-run` : Outputs the operations but will not execute anything (implicitly enables --verbose). +* `--global-option` : Pass the --global-option=\ parameter to pip upon installation. ## remove diff --git a/poetry/console/commands/add.py b/poetry/console/commands/add.py index 275fc44f5f1..d775ce4a836 100644 --- a/poetry/console/commands/add.py +++ b/poetry/console/commands/add.py @@ -33,6 +33,13 @@ class AddCommand(EnvCommand, InitCommand): "Platforms for which the dependency must be installed.", flag=False, ), + option( + "--global-option", + None, + "Pass --global-option='