Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea6a28c

Browse files
andresdelfinoserhiy-storchaka
authored andcommitted
Mark -c and -O as command line options in reStructuredText. (GH-10103)
1 parent c64583b commit ea6a28c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/reference/executionmodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following are blocks: a module, a function body, and a class definition.
2222
Each command typed interactively is a block. A script file (a file given as
2323
standard input to the interpreter or specified as a command line argument to the
2424
interpreter) is a code block. A script command (a command specified on the
25-
interpreter command line with the '**-c**' option) is a code block. The string
25+
interpreter command line with the :option:`-c` option) is a code block. The string
2626
argument passed to the built-in functions :func:`eval` and :func:`exec` is a
2727
code block.
2828

Doc/reference/import.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ In :ref:`the remaining cases <using-on-interface-options>`
951951
:mod:`__main__` does not correspond directly with an importable module:
952952

953953
- interactive prompt
954-
- -c switch
954+
- :option:`-c` option
955955
- running from stdin
956956
- running directly from a source or bytecode file
957957

Doc/reference/simple_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ The extended form, ``assert expression1, expression2``, is equivalent to ::
402402
These equivalences assume that :const:`__debug__` and :exc:`AssertionError` refer to
403403
the built-in variables with those names. In the current implementation, the
404404
built-in variable :const:`__debug__` is ``True`` under normal circumstances,
405-
``False`` when optimization is requested (command line option -O). The current
405+
``False`` when optimization is requested (command line option :option:`-O`). The current
406406
code generator emits no code for an assert statement when optimization is
407407
requested at compile time. Note that it is unnecessary to include the source
408408
code for the expression that failed in the error message; it will be displayed

0 commit comments

Comments
 (0)