You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Help output for poetry build shows unexpected formatting for --clean:
$ poetry build --help
Description:
Builds a package, as a tarball and a wheel by default.
...
-C, --directory=DIRECTORY The working directory for the Poetry command (defaults to the current working directory). All command-line arguments will be resolved relative to the given directory.
-Clean output directory before building., --clean
option(
"clean",
"Clean output directory before building.",
flag=True,
),
The second positional parameter to option is the short option, so either the help text needs to be a keyword argument (description="...") or an explicit None should be inserted for the second (short_name) parameter.
Workarounds
Use --clean rather than attempting to use a short form of the option.
Description:
Builds a package, as a tarball and a wheel by default.
Usage:
build [options]
Options:
-f, --format=FORMAT Limit the format to either sdist or wheel.
-l, --local-version=LOCAL-VERSION Add or replace a local version label to the build.
-o, --output=OUTPUT Set output directory for build artifacts. Default is `dist`. [default: "dist"]
-h, --help Display helpfor the given command. When no command is given display helpfor the list command.
-q, --quiet Do not output any message.
-V, --version Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
-n, --no-interaction Do not ask any interactive question.
--no-plugins Disables plugins.
--no-cache Disables Poetry source caches.
-P, --project=PROJECT Specify another path as the project root. All command-line arguments will be resolved relative to the current working directory.
-C, --directory=DIRECTORY The working directory for the Poetry command (defaults to the current working directory). All command-line arguments will be resolved relative to the given directory.
-Clean output directory before building., --clean
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.
The text was updated successfully, but these errors were encountered:
Description
Help output for
poetry build
shows unexpected formatting for--clean
:poetry.console.commands.build:
The second positional parameter to
option
is the short option, so either the help text needs to be a keyword argument (description="..."
) or an explicitNone
should be inserted for the second (short_name
) parameter.Workarounds
Use
--clean
rather than attempting to use a short form of the option.Poetry Installation Method
pipx
Operating System
Arch Linux
Poetry Version
2.0.0
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: