Skip to content

Commit fc16f4f

Browse files
pradyunsgchrysle
andauthored
Apply suggestions from code review
Co-authored-by: chrysle <[email protected]>
1 parent 5d66488 commit fc16f4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/html/development/architecture/command-line-interface.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The base ``Command`` has the following methods:
5050
5151
.. py:method:: main()
5252
53-
Main method of the class, its always called (as can be seen in main.py's
53+
Main method of the class, it's always called (as can be seen in main.py's
5454
`main <https://github.com/pypa/pip/blob/main/src/pip/_internal/cli/main.py#L46>`_).
5555
It's in charge of calling the specific ``run`` method of the class and handling the possible errors.
5656

@@ -73,7 +73,7 @@ In addition to the previous classes, a last mixin class must be mentioned, from
7373
``Command`` as well as ``SessionCommandMixin`` inherit: ``CommandContextMixIn``, in
7474
charge of the command's context.
7575

76-
In the following command tree we can see the hierarchy defined for the different pip's
76+
In the following command tree we can see the hierarchy defined for the different pip
7777
commands, where each command is defined under the base class it inherits from:
7878

7979
| ``Command``
@@ -148,7 +148,7 @@ Configuration and CLI "blend"
148148
The base ``Command`` instantiates the class `ConfigOptionParser <https://github.com/pypa/pip/blob/main/src/pip/_internal/cli/parser.py>`_
149149
which is in charge of the parsing process (via its parent class
150150
`optparse.OptionParser <https://docs.python.org/3/library/optparse.html#optparse.OptionParser>`_).
151-
Its main addition consists on the following function:
151+
Its main addition consists of the following function:
152152

153153
.. py:class:: ConfigOptionParser(OptionParser)
154154
@@ -158,13 +158,13 @@ Its main addition consists on the following function:
158158
option parser.
159159

160160
It allows overriding the default options and arguments using the ``Configuration`` class
161-
(more information can be found on :ref:`Configuration`) to add environment variables and
162-
information from configuration files.
161+
(more information can be found on :ref:`Configuration`) to include environment variables and
162+
settings from configuration files.
163163

164164
Progress bars and spinners
165165
--------------------------
166166

167-
There are two more modules in the cli subpackage in charge of showing the state of the
167+
There are two more modules in the ``cli`` subpackage in charge of showing the state of the
168168
program.
169169

170170
* `progress_bars.py <https://github.com/pypa/pip/blob/main/src/pip/_internal/cli/progress_bars.py>`_

0 commit comments

Comments
 (0)