Skip to content
Closed
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
3 changes: 2 additions & 1 deletion Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ source.
.. cmdoption:: -m <module-name>

Search :data:`sys.path` for the named module and execute its contents as
the :mod:`__main__` module.
the :mod:`__main__` module. This option only works for `packages` and
`leaf-level modules`.

Since the argument is a *module* name, you must not give a file extension
(``.py``). The module name should be a valid absolute Python module name, but
Expand Down