.. _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`
$ python -m tarfile -l monty.tar
-Command line options
+Command-line options
~~~~~~~~~~~~~~~~~~~~
.. cmdoption:: -l <tarfile>
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.
.. cmdoption:: -v, --verbose
- Verbose output
+ Verbose output.
.. _tar-examples: