summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-11-07 16:32:16 (GMT)
committerGitHub <noreply@github.com>2023-11-07 16:32:16 (GMT)
commit70afb8d7324bc74fe64141e1af5c602bf6c0c4dd (patch)
tree79f9089295cc3e041df91b0feb61727cce2677ed /Doc
parentf55cb44359821e71c29903f2152b4658509dac0d (diff)
downloadcpython-70afb8d7324bc74fe64141e1af5c602bf6c0c4dd.zip
cpython-70afb8d7324bc74fe64141e1af5c602bf6c0c4dd.tar.gz
cpython-70afb8d7324bc74fe64141e1af5c602bf6c0c4dd.tar.bz2
gh-85098: Implement functional CLI of symtable (#109112)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/symtable.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/library/symtable.rst b/Doc/library/symtable.rst
index 85eae5f..46159dc 100644
--- a/Doc/library/symtable.rst
+++ b/Doc/library/symtable.rst
@@ -207,3 +207,21 @@ Examining Symbol Tables
Return the namespace bound to this name. If more than one or no namespace
is bound to this name, a :exc:`ValueError` is raised.
+
+
+.. _symtable-cli:
+
+Command-Line Usage
+------------------
+
+.. versionadded:: 3.13
+
+The :mod:`symtable` module can be executed as a script from the command line.
+
+.. code-block:: sh
+
+ python -m symtable [infile...]
+
+Symbol tables are generated for the specified Python source files and
+dumped to stdout.
+If no input file is specified, the content is read from stdin.