diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-02 21:06:13 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-02 21:06:13 +0200 |
commit | 339dff39e58f505b377f421f96ba73458138834d (patch) | |
tree | d2cb68e870ac6bf109a9c48cd43b9ca59bfde745 | |
parent | 5a97bf7decafd3421c91565bc2f16e7b1992b566 (diff) | |
parent | dcb9077a7cfe8a77e577909a03a4df93e3383000 (diff) | |
download | cpython-git-339dff39e58f505b377f421f96ba73458138834d.tar.gz |
Fixed hyperlinks for tarfile CLI options.
-rw-r--r-- | Doc/library/tarfile.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 5b95ef3107..be3a594997 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -644,13 +644,14 @@ A :class:`TarInfo` object also provides some convenient query methods: .. _tarfile-commandline: +.. program:: tarfile -Command Line Interface +Command-Line Interface ---------------------- .. versionadded:: 3.4 -The :mod:`tarfile` module provides a simple command line interface to interact +The :mod:`tarfile` module provides a simple command-line interface to interact with tar archives. If you want to create a new tar archive, specify its name after the :option:`-c` @@ -687,7 +688,7 @@ For a list of the files in a tar archive, use the :option:`-l` option: $ python -m tarfile -l monty.tar -Command line options +Command-line options ~~~~~~~~~~~~~~~~~~~~ .. cmdoption:: -l <tarfile> @@ -695,8 +696,8 @@ Command line options List files in a tarfile. -.. cmdoption:: -c <tarfile> <source1> <sourceN> - --create <tarfile> <source1> <sourceN> +.. cmdoption:: -c <tarfile> <source1> ... <sourceN> + --create <tarfile> <source1> ... <sourceN> Create tarfile from source files. @@ -712,7 +713,7 @@ Command line options .. cmdoption:: -v, --verbose - Verbose output + Verbose output. .. _tar-examples: |