Commit d1786b89 by dgnsrekt

Fixes add and init command --help documentation.

parent 667d87dd
...@@ -45,7 +45,7 @@ class AddCommand(EnvCommand, InitCommand): ...@@ -45,7 +45,7 @@ class AddCommand(EnvCommand, InitCommand):
"If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.\n\n" "If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.\n\n"
"You can specify a package in the following forms:\n" "You can specify a package in the following forms:\n"
" - A single name (<b>requests</b>)\n" " - A single name (<b>requests</b>)\n"
" - A name and a constraint (<b>requests ^2.23.0</b>)\n" " - A name and a constraint (<b>requests@^2.23.0</b>)\n"
" - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)\n" " - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)\n"
" - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)\n" " - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)\n"
" - A file path (<b>../my-package/my-package.whl</b>)\n" " - A file path (<b>../my-package/my-package.whl</b>)\n"
......
...@@ -146,7 +146,7 @@ The <c1>init</c1> command creates a basic <comment>pyproject.toml</> file in the ...@@ -146,7 +146,7 @@ The <c1>init</c1> command creates a basic <comment>pyproject.toml</> file in the
help_message = ( help_message = (
"You can specify a package in the following forms:\n" "You can specify a package in the following forms:\n"
" - A single name (<b>requests</b>)\n" " - A single name (<b>requests</b>)\n"
" - A name and a constraint (<b>requests ^2.23.0</b>)\n" " - A name and a constraint (<b>requests@^2.23.0</b>)\n"
" - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)\n" " - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)\n"
" - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)\n" " - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)\n"
" - A file path (<b>../my-package/my-package.whl</b>)\n" " - A file path (<b>../my-package/my-package.whl</b>)\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment