Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
80296c2e
Commit
80296c2e
authored
Oct 15, 2022
by
finswimmer
Committed by
Bjorn Neergaard
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cli): added warning about ignoring --directory when trying to apply `new` command
parent
eb4b45d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/poetry/console/commands/new.py
+6
-0
No files found.
src/poetry/console/commands/new.py
View file @
80296c2e
...
@@ -34,6 +34,12 @@ class NewCommand(Command):
...
@@ -34,6 +34,12 @@ class NewCommand(Command):
from
poetry.layouts
import
layout
from
poetry.layouts
import
layout
from
poetry.utils.env
import
SystemEnv
from
poetry.utils.env
import
SystemEnv
if
self
.
io
.
input
.
option
(
"directory"
):
self
.
line_error
(
"<warning>--directory only makes sense with existing projects, and will"
" be ignored. You should consider the option --path instead.</warning>"
)
if
self
.
option
(
"src"
):
if
self
.
option
(
"src"
):
layout_cls
=
layout
(
"src"
)
layout_cls
=
layout
(
"src"
)
else
:
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment