diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-10-03 17:38:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 17:38:12 (GMT) |
commit | 77e9aae3837d9f0cf87461d023896f2c4aeb282f (patch) | |
tree | 508dcedceb78404e8fb2f3d36c692c109242d7a0 /Doc/library/zipfile.rst | |
parent | d67edcf0b361c9ee0d29ed719562c58a85304cd0 (diff) | |
download | cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.zip cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.tar.gz cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.tar.bz2 |
Docs: Avoid the deprecated ``.. cmdoption::`` directive (#110292)
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r-- | Doc/library/zipfile.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index bd951e4..a77e49a 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -906,27 +906,27 @@ For a list of the files in a ZIP archive, use the :option:`-l` option: Command-line options ~~~~~~~~~~~~~~~~~~~~ -.. cmdoption:: -l <zipfile> - --list <zipfile> +.. option:: -l <zipfile> + --list <zipfile> List files in a zipfile. -.. cmdoption:: -c <zipfile> <source1> ... <sourceN> - --create <zipfile> <source1> ... <sourceN> +.. option:: -c <zipfile> <source1> ... <sourceN> + --create <zipfile> <source1> ... <sourceN> Create zipfile from source files. -.. cmdoption:: -e <zipfile> <output_dir> - --extract <zipfile> <output_dir> +.. option:: -e <zipfile> <output_dir> + --extract <zipfile> <output_dir> Extract zipfile into target directory. -.. cmdoption:: -t <zipfile> - --test <zipfile> +.. option:: -t <zipfile> + --test <zipfile> Test whether the zipfile is valid or not. -.. cmdoption:: --metadata-encoding <encoding> +.. option:: --metadata-encoding <encoding> Specify encoding of member names for :option:`-l`, :option:`-e` and :option:`-t`. |