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

Skip to content

Commit dcb9077

Browse files
Fixed hyperlinks for tarfile CLI options.
2 parents d8d9da0 + 72b3443 commit dcb9077

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Doc/library/tarfile.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,13 +644,14 @@ A :class:`TarInfo` object also provides some convenient query methods:
644644

645645

646646
.. _tarfile-commandline:
647+
.. program:: tarfile
647648

648-
Command Line Interface
649+
Command-Line Interface
649650
----------------------
650651

651652
.. versionadded:: 3.4
652653

653-
The :mod:`tarfile` module provides a simple command line interface to interact
654+
The :mod:`tarfile` module provides a simple command-line interface to interact
654655
with tar archives.
655656

656657
If you want to create a new tar archive, specify its name after the :option:`-c`
@@ -687,16 +688,16 @@ For a list of the files in a tar archive, use the :option:`-l` option:
687688
$ python -m tarfile -l monty.tar
688689
689690
690-
Command line options
691+
Command-line options
691692
~~~~~~~~~~~~~~~~~~~~
692693

693694
.. cmdoption:: -l <tarfile>
694695
--list <tarfile>
695696

696697
List files in a tarfile.
697698

698-
.. cmdoption:: -c <tarfile> <source1> <sourceN>
699-
--create <tarfile> <source1> <sourceN>
699+
.. cmdoption:: -c <tarfile> <source1> ... <sourceN>
700+
--create <tarfile> <source1> ... <sourceN>
700701

701702
Create tarfile from source files.
702703

@@ -712,7 +713,7 @@ Command line options
712713

713714
.. cmdoption:: -v, --verbose
714715

715-
Verbose output
716+
Verbose output.
716717

717718
.. _tar-examples:
718719

0 commit comments

Comments
 (0)