Skip to content

Commit a8cf52e

Browse files
committed
changing from filter to filter_glob
1 parent dab1515 commit a8cf52e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

qfieldcloud_sdk/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ def patch_project(
513513
@click.argument("paths", nargs=-1)
514514
@click.option(
515515
"--filter",
516+
"filter_glob",
516517
multiple=True,
517518
help="Glob pattern to filter files for deletion (e.g., '*.jpg'). Can be provided multiple times.",
518519
)
@@ -521,10 +522,10 @@ def patch_project(
521522
help="If any project file delete operations fails, stop deleting the rest. Default: False",
522523
)
523524
@click.pass_context
524-
def delete_files(ctx: Context, project_id, paths, filter, throw_on_error):
525+
def delete_files(ctx: Context, project_id, paths, filter_glob, throw_on_error):
525526
"""Delete QFieldCloud project files."""
526527

527-
all_patterns = list(paths) + list(filter)
528+
all_patterns = list(paths) + list(filter_glob)
528529

529530
if not all_patterns:
530531
log("You must provide at least one file path or use the --filter option.")

0 commit comments

Comments
 (0)