Skip to content

Commit

Permalink
docs: clarify multi-value behavior of --exclude/--ignore CLI options (#…
Browse files Browse the repository at this point in the history
…254)

Co-authored-by: Chau Duong <[email protected]>
  • Loading branch information
duongdominhchau and chauduong-ptn authored Oct 6, 2023
1 parent ce5d2da commit 1c47c5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/commandline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ Options
Exclude files only when their path matches one of these glob patterns.
Usually needs quoting at the command line.

This is a comma-separated list. ``--exclude a.py,b.py`` will skip both
``a.py`` and ``b.py``, but ``--exclude a.py --exclude b.py`` will
**NOT** exclude ``a.py``.

Value can be set in a configuration file using the ``exclude`` property.

.. option:: -i, --ignore
Expand All @@ -137,6 +141,9 @@ Options
won't even descend into them. By default, hidden directories (starting with
'.') are ignored.

This is a comma-separated list. ``--ignore a,b`` will ignore both ``a`` and
``b``, but ``--ignore a --ignore b`` will **NOT** ignore ``a``.

Value can be set in a configuration file using the ``ignore`` property.

.. option:: -o, --order
Expand Down

0 comments on commit 1c47c5c

Please sign in to comment.