@@ -26,74 +26,74 @@ compile Python sources.
2626
2727.. program :: compileall
2828
29- .. cmdoption :: directory ...
30- file ...
29+ .. option :: directory ...
30+ file ...
3131
3232 Positional arguments are files to compile or directories that contain
3333 source files, traversed recursively. If no argument is given, behave as if
3434 the command line was :samp: `-l { <directories from sys.path> } `.
3535
36- .. cmdoption :: -l
36+ .. option :: -l
3737
3838 Do not recurse into subdirectories, only compile source code files directly
3939 contained in the named or implied directories.
4040
41- .. cmdoption :: -f
41+ .. option :: -f
4242
4343 Force rebuild even if timestamps are up-to-date.
4444
45- .. cmdoption :: -q
45+ .. option :: -q
4646
4747 Do not print the list of files compiled. If passed once, error messages will
4848 still be printed. If passed twice (``-qq ``), all output is suppressed.
4949
50- .. cmdoption :: -d destdir
50+ .. option :: -d destdir
5151
5252 Directory prepended to the path to each file being compiled. This will
5353 appear in compilation time tracebacks, and is also compiled in to the
5454 byte-code file, where it will be used in tracebacks and other messages in
5555 cases where the source file does not exist at the time the byte-code file is
5656 executed.
5757
58- .. cmdoption :: -s strip_prefix
59- .. cmdoption :: -p prepend_prefix
58+ .. option :: -s strip_prefix
59+ .. option :: -p prepend_prefix
6060
6161 Remove (``-s ``) or append (``-p ``) the given prefix of paths
6262 recorded in the ``.pyc `` files.
6363 Cannot be combined with ``-d ``.
6464
65- .. cmdoption :: -x regex
65+ .. option :: -x regex
6666
6767 regex is used to search the full path to each file considered for
6868 compilation, and if the regex produces a match, the file is skipped.
6969
70- .. cmdoption :: -i list
70+ .. option :: -i list
7171
7272 Read the file ``list `` and add each line that it contains to the list of
7373 files and directories to compile. If ``list `` is ``- ``, read lines from
7474 ``stdin ``.
7575
76- .. cmdoption :: -b
76+ .. option :: -b
7777
7878 Write the byte-code files to their legacy locations and names, which may
7979 overwrite byte-code files created by another version of Python. The default
8080 is to write files to their :pep: `3147 ` locations and names, which allows
8181 byte-code files from multiple versions of Python to coexist.
8282
83- .. cmdoption :: -r
83+ .. option :: -r
8484
8585 Control the maximum recursion level for subdirectories.
8686 If this is given, then ``-l `` option will not be taken into account.
8787 :program: `python -m compileall <directory> -r 0 ` is equivalent to
8888 :program: `python -m compileall <directory> -l `.
8989
90- .. cmdoption :: -j N
90+ .. option :: -j N
9191
9292 Use *N * workers to compile the files within the given directory.
9393 If ``0 `` is used, then the result of :func: `os.process_cpu_count() `
9494 will be used.
9595
96- .. cmdoption :: --invalidation-mode [timestamp|checked-hash|unchecked-hash]
96+ .. option :: --invalidation-mode [timestamp|checked-hash|unchecked-hash]
9797
9898 Control how the generated byte-code files are invalidated at runtime.
9999 The ``timestamp `` value, means that ``.pyc `` files with the source timestamp
@@ -106,17 +106,17 @@ compile Python sources.
106106 variable is not set, and ``checked-hash `` if the ``SOURCE_DATE_EPOCH ``
107107 environment variable is set.
108108
109- .. cmdoption :: -o level
109+ .. option :: -o level
110110
111111 Compile with the given optimization level. May be used multiple times
112112 to compile for multiple levels at a time (for example,
113113 ``compileall -o 1 -o 2 ``).
114114
115- .. cmdoption :: -e dir
115+ .. option :: -e dir
116116
117117 Ignore symlinks pointing outside the given directory.
118118
119- .. cmdoption :: --hardlink-dupes
119+ .. option :: --hardlink-dupes
120120
121121 If two ``.pyc `` files with different optimization level have
122122 the same content, use hard links to consolidate duplicate files.
0 commit comments