summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/commands/pmatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/patternutils/commands/pmatch.py b/patternutils/commands/pmatch.py
index f69df48..3884a9d 100644
--- a/patternutils/commands/pmatch.py
+++ b/patternutils/commands/pmatch.py
@@ -18,7 +18,7 @@ def apply_regex(
) -> Generator[Optional[dict[str, str]], None, None]:
for f in walk_function:
- subject = f.path if match_full_path else f.name
+ subject = os.path.abspath(f.path) if match_full_path else f.name
try:
match = mat.apply(subject, regex_pattern)
except ValueError:
@@ -59,7 +59,7 @@ def apply_regex(
"--match-full-path",
is_flag=True,
default=False,
- help="match on full path instead of only filename",
+ help="match on full absolute path instead of only the filename",
)
@click.option(
"-p",