@@ -314,11 +314,11 @@ than one MIME-type database; it provides an interface similar to the one of the
314314 Command-Line Usage
315315------------------
316316
317- The :mod: `mimetypes ` module can be executed as a script from the command line.
317+ The :mod: `! mimetypes ` module can be executed as a script from the command line.
318318
319319.. code-block :: sh
320320
321- python -m mimetypes [-e] [-l] type [type ...]
321+ python -m mimetypes [-h] [- e] [-l] type [type ...]
322322
323323 The following options are accepted:
324324
@@ -339,21 +339,22 @@ The following options are accepted:
339339
340340 Additionally search for some common, but non-standard types.
341341
342- The script converts file extensions to MIME types if ``--extension `` option
343- is specified, or vice versa if not.
342+ By default the script converts MIME types to file extensions.
343+ However, if ``--extension `` is specified,
344+ it converts file extensions to MIME types.
344345
345346For each ``type `` entry, the script writes a line into the standard output
346347stream. If an unknown type occurs, it writes an error message into the
347- standard error stream and aborts with the return code ``1 ``.
348+ standard error stream and exits with the return code ``1 ``.
348349
349350
350351.. mimetypes-cli-example:
351352
352353 Command-Line Example
353354--------------------
354355
355- Here are some examples of typical usage of the :mod: `mimetypes ` command
356- line interface:
356+ Here are some examples of typical usage of the :mod: `! mimetypes ` command-line
357+ interface:
357358
358359.. code-block :: console
359360
0 commit comments