We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f9aec commit bc0a314Copy full SHA for bc0a314
2 files changed
CHANGELOG.md
@@ -10,6 +10,7 @@
10
11
- Fixed Python version retrieval inside virtualenvs.
12
- Fixed optional dependencies being set as required in sdist.
13
+- Fixed `--optional` option in the `add` command not being used.
14
15
16
## [0.6.3] - 2018-03-20
poetry/console/commands/add.py
@@ -53,6 +53,12 @@ def handle(self):
53
parser.parse_constraints(constraint)
54
55
for name, constraint in requirements.items():
56
+ if self.option('optional'):
57
+ constraint = {
58
+ 'version': constraint,
59
+ 'optional': True
60
+ }
61
+
62
poetry_content[section][name] = constraint
63
64
# Write new content
0 commit comments