]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
document compileall command flags
authorBenjamin Peterson <benjamin@python.org>
Wed, 17 Sep 2008 21:54:56 +0000 (21:54 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 17 Sep 2008 21:54:56 +0000 (21:54 +0000)
Doc/library/compileall.rst

index d62b785dc9c54df36bb1a794cd4b5030b6962c0b..86f60fb7812481bf8639160dfbdda4f7187fa34e 100644 (file)
@@ -11,8 +11,13 @@ libraries.  These functions compile Python source files in a directory tree,
 allowing users without permission to write to the libraries to take advantage of
 cached byte-code files.
 
-The source file for this module may also be used as a script to compile Python
-sources in directories named on the command line or in ``sys.path``.
+This module may also be used as a script (using the :option:`-m` Python flag) to
+compile Python sources.  Directories to recursively traverse (passing
+:option:`-l` stops the recursive behavior) for sources are listed on the command
+line.  If no arguments are given, the invocation is equivalent to ``-l
+sys.path``.  Printing lists of the files compiled can be disabled with the
+:option:`-q` flag.  In addition, the :option:`-x` option takes a regular
+expression argument.  All files that match the expression will be skipped.
 
 
 .. function:: compile_dir(dir[, maxlevels[, ddir[, force[,  rx[, quiet]]]]])