@@ -117,10 +117,9 @@ def login(ctx, username, password) -> None:
117117 help = "Includes the public project in the list. Default: False" ,
118118)
119119@click .pass_context
120- def list_projects (ctx , username , include_public ):
120+ def list_projects (ctx , include_public ):
121121 """List QFieldCloud projects."""
122122 projects = ctx .obj ["client" ].list_projects (
123- username = username ,
124123 include_public = include_public ,
125124 )
126125
@@ -157,18 +156,18 @@ def list_files(ctx, project_id):
157156@click .argument ("project_id" )
158157@click .argument ("local_dir" )
159158@click .option (
160- "--subdir " ,
161- help = "Do not download the whole project, but only the subdirectory passed ." ,
159+ "--path-starts-with " ,
160+ help = "Do not download the whole project, but only the files which path starts with the string ." ,
162161)
163162@click .option (
164163 "--exit-on-error/--no-exit-on-error" ,
165164 help = "If any project file download fails stop downloading the rest. Default: False" ,
166165)
167166@click .pass_context
168- def download_files (ctx , project_id , local_dir , subdir , exit_on_error ):
167+ def download_files (ctx , project_id , local_dir , path_starts_with , exit_on_error ):
169168 """Download QFieldCloud project files."""
170169 files = ctx .obj ["client" ].download_files (
171- project_id , local_dir , subdir , exit_on_error
170+ project_id , local_dir , path_starts_with , exit_on_error
172171 )
173172
174173 if ctx .obj ["format_json" ]:
0 commit comments