File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,18 @@ class AddCommand(EnvCommand, InitCommand):
40
40
"Output the operations but do not execute anything (implicitly enables --verbose)." ,
41
41
),
42
42
]
43
-
44
- help = """The add command adds required packages to your <comment>pyproject.toml</> and installs them.
45
-
46
- If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.
47
- """
43
+ help = (
44
+ "The add command adds required packages to your <comment>pyproject.toml</> and installs them.\n \n "
45
+ "If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.\n \n "
46
+ "You can specify a package in the following forms:\n "
47
+ " - A single name (<b>requests</b>)\n "
48
+ " - A name and a constraint (<b>requests@^2.23.0</b>)\n "
49
+ " - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)\n "
50
+ " - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)\n "
51
+ " - A file path (<b>../my-package/my-package.whl</b>)\n "
52
+ " - A directory (<b>../my-package/</b>)\n "
53
+ " - A url (<b>https://example.com/packages/my-package-0.1.0.tar.gz</b>)\n "
54
+ )
48
55
49
56
loggers = ["poetry.repositories.pypi_repository" ]
50
57
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def handle(self):
146
146
help_message = (
147
147
"You can specify a package in the following forms:\n "
148
148
" - A single name (<b>requests</b>)\n "
149
- " - A name and a constraint (<b>requests ^2.23.0</b>)\n "
149
+ " - A name and a constraint (<b>requests@ ^2.23.0</b>)\n "
150
150
" - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)\n "
151
151
" - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)\n "
152
152
" - A file path (<b>../my-package/my-package.whl</b>)\n "
You can’t perform that action at this time.
0 commit comments