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

Skip to content

Commit e422de8

Browse files
Mark -c and -O as command line options in reStructuredText. (GH-10103)
(cherry picked from commit ea6a28c) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 25bd107 commit e422de8

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
@@ -925,7 +925,7 @@ In :ref:`the remaining cases <using-on-interface-options>`
925925
:mod:`__main__` does not correspond directly with an importable module:
926926

927927
- interactive prompt
928-
- -c switch
928+
- :option:`-c` option
929929
- running from stdin
930930
- running directly from a source or bytecode file
931931

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)