summaryrefslogtreecommitdiffstats
path: root/Doc/library/tarfile.rst
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-10-03 17:38:12 (GMT)
committerGitHub <noreply@github.com>2023-10-03 17:38:12 (GMT)
commit77e9aae3837d9f0cf87461d023896f2c4aeb282f (patch)
tree508dcedceb78404e8fb2f3d36c692c109242d7a0 /Doc/library/tarfile.rst
parentd67edcf0b361c9ee0d29ed719562c58a85304cd0 (diff)
downloadcpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.zip
cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.tar.gz
cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.tar.bz2
Docs: Avoid the deprecated ``.. cmdoption::`` directive (#110292)
Diffstat (limited to 'Doc/library/tarfile.rst')
-rw-r--r--Doc/library/tarfile.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index 62d67bc..3e5723a 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -1156,31 +1156,31 @@ For a list of the files in a tar archive, use the :option:`-l` option:
Command-line options
~~~~~~~~~~~~~~~~~~~~
-.. cmdoption:: -l <tarfile>
- --list <tarfile>
+.. option:: -l <tarfile>
+ --list <tarfile>
List files in a tarfile.
-.. cmdoption:: -c <tarfile> <source1> ... <sourceN>
- --create <tarfile> <source1> ... <sourceN>
+.. option:: -c <tarfile> <source1> ... <sourceN>
+ --create <tarfile> <source1> ... <sourceN>
Create tarfile from source files.
-.. cmdoption:: -e <tarfile> [<output_dir>]
- --extract <tarfile> [<output_dir>]
+.. option:: -e <tarfile> [<output_dir>]
+ --extract <tarfile> [<output_dir>]
Extract tarfile into the current directory if *output_dir* is not specified.
-.. cmdoption:: -t <tarfile>
- --test <tarfile>
+.. option:: -t <tarfile>
+ --test <tarfile>
Test whether the tarfile is valid or not.
-.. cmdoption:: -v, --verbose
+.. option:: -v, --verbose
Verbose output.
-.. cmdoption:: --filter <filtername>
+.. option:: --filter <filtername>
Specifies the *filter* for ``--extract``.
See :ref:`tarfile-extraction-filter` for details.