Skip to content

Commit

Permalink
Fix sub-command option propagation for export
Browse files Browse the repository at this point in the history
When a lock file does not exist when handling export command, option 
propagation for lock sub-command was incorrect. This change corrects 
this issue.

Resolves: #3309
  • Loading branch information
finswimmer authored Nov 19, 2020
1 parent 360d49c commit e2ff1ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions poetry/console/commands/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def handle(self):
self.line("<comment>The lock file does not exist. Locking.</comment>")
options = []
if self.io.is_debug():
options.append(("-vvv", None))
options.append("-vvv")
elif self.io.is_very_verbose():
options.append(("-vv", None))
options.append("-vv")
elif self.io.is_verbose():
options.append(("-v", None))
options.append("-v")

self.call("lock", options)

Expand Down

0 comments on commit e2ff1ef

Please sign in to comment.