Skip to content

Commit fe3abba

Browse files
committed
feat(cli): added warning about ignoring --project when trying to apply new command
1 parent 8d7d6b9 commit fe3abba

File tree

1 file changed

+6
-0
lines changed
  • src/poetry/console/commands

1 file changed

+6
-0
lines changed

Diff for: src/poetry/console/commands/new.py

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ def handle(self) -> int:
3434
from poetry.layouts import layout
3535
from poetry.utils.env import SystemEnv
3636

37+
if self.io.input.option("project"):
38+
self.line_error(
39+
"<warning>--project only makes sense with existing projects, and will"
40+
" be ignored. You should consider the option --path instead.</warning>"
41+
)
42+
3743
if self.option("src"):
3844
layout_cls = layout("src")
3945
else:

0 commit comments

Comments
 (0)