Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/guides/writing-pyproject-toml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ To install a command as part of your package, declare it in the

In this example, after installing your project, a ``spam-cli`` command
will be available. Executing this command will do the equivalent of
``from spam import main_cli; main_cli()``.
``import sys; from spam import main_cli; sys.exit(main_cli())``.

On Windows, scripts packaged this way need a terminal, so if you launch
them from within a graphical application, they will make a terminal pop
Expand Down
Loading