From ba922d2e0a5fc5b5b9bc8b024e03dde6f32cc045 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 8 Jun 2023 19:14:36 +0200 Subject: [PATCH] improve patterns help: define a pattern style --- src/borg/archiver/help_cmd.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/borg/archiver/help_cmd.py b/src/borg/archiver/help_cmd.py index 16ece6e7e..e0c0e2a16 100644 --- a/src/borg/archiver/help_cmd.py +++ b/src/borg/archiver/help_cmd.py @@ -32,11 +32,9 @@ class HelpMixIn: If you give ``../../relative`` as root, the paths will be normalized as ``relative/``. - File patterns support five different styles. If followed by a colon ':', - the first two characters of a pattern are used as a style selector. - Explicit style selection is necessary if a non-default style is desired - or when the desired pattern starts with two alphanumeric characters - followed by a colon (i.e. ``aa:something/*``). + Borg supports different pattern styles. To define a non-default + style for a specific pattern, prefix it with two characters followed + by a colon ':' (i.e. ``fm:path/*``, ``sh:path/**``). `Fnmatch `_, selector ``fm:`` This is the default style for ``--exclude`` and ``--exclude-from``.